- <input name="Parent" id="Parent" type="checkbox" value="Yes" />
- name="Parent" being an identifier in the form html
- id="Parent" being the custom tag name in the NewZapp account
- type="checkbox" specifies that the input should be a checkbox not a text field
- value="Yes" gives the form something to pass to the contact's custom tag if someone ticks it (nothing passed if they don’t).
If you didn’t specify a value attribute, then the HTML would send the value of “on” if someone ticks, and again, nothing is passed if they don’t.
A publisher has a newsletter signup form on their website which allows new contacts to choose to receive emails from up to 4 specialist subject Groups: Medicine, Automotive, Nutrition, and Astronomy.
In this instance, the usually ‘hidden’ GroupIds input field:
The GROUP ID VALUE can be found by going into Contacts in your NewZapp account, hovering over thew 3 dots on a group Group and clicking the icon that says ‘Edit’. The ID can be added to your clipboard from here.
So, for the 4 different Groups you can create a checkbox group like for example:
When the <form> is submitted, the contact will be added to each Group whose checkbox has been selected.
Notice that we have shown the use of the <label> tag for each checkbox. We can replace each checkbox’s id attribute with a unique name in order for the <label> to be able to target each checkbox as shown.
A recruitment agency has a newsletter sign-up form that includes checkboxes for the kind of vacancy contacts are interested in: Full Time, Part Time, Contract. New contacts can tick more than one checkbox and each checkbox updates their Contact Card to reflect these preferences.
Within the form’s HTML code, each checkbox should only pass a value of true when selected, false if not. Any other value will also be false.
e.g. for this example, the input fields would look like this:
So, if the ‘Full Time’ checkbox is selected, when the form is submitted the Custom data section of the Contact Card will show ‘Full Time’ as ticked.