Developer Hub

Welcome to the Synerise developer hub. Add extraordinary value to Your business with a Synerise integration, webhooks, API or customize Synerise for Your organization.

Get Started
Ask A Question

Questions

Fields sent in JQuery

Posted by Mateusz 23 days ago

Good morning,
we create a form which after clicking the send button is to download fields from the form and throw them into JSON. The fields defined by us do not want to appear in CRM synerise. Do you have any idea what could be wrong? when we send only the first three data, i.e. name, surname and e-mail, this form is added to crm synerise.

snippet js:

var sendform = SyneriseTC.sendFormData(
/ First argument corresponds to form level data-synerise attribute /
'contact',
{
/ Form field values /
email: $('#email').val(),
firstname: $('#firstname').val(),
lastname: $('#lastname').val(),
phone: $('#phone').val(),
company: $('#company').val(),
address: $('#address').val(),
addressHouseNumber: $('#addressHouseNumber').val(),
zipCode: $('#zipCode').val(),
city: $('#city').val(),
province: $('#province').val(),
dowodosobisty: $('#dowodosobisty').val(),
pesel: $('#pesel').val(),
// receive_smses: true,
// oferta_zgoda:1,
// mailing_zgoda:1,
// zlecenia_zgoda:1
}
);

snippet html:
<div class="form-group">
<input class="form-control" id="firstname" placeholder="Imię" name="firstname" required data-synerise="firstname" type="text">
<div class="msg_error"></div>
</div>
<div class="form-group">
<input class="form-control" id="lastname" placeholder="Nazwisko" name="lastname" required data-synerise="lastname" type="text">
<div class="msg_error"></div>

                        </div>
                        <div class="form-group">
                            <input class="form-control" id="email" placeholder="Email" name="email" required
                                   data-synerise="email" type="text">
                            <div class="msg_error"></div>

                        </div>

(....)

Loading comments...