|
Home > Advanced Options & Appendixes > Advanced Options in the Website Registration Form > Checkbox
Checkbox
We'd like to use a checkbox when we want to give the recipient the possibility to check few options. For example, if you have a field like "Which pets do you have?" you can give him few options to choose from.
In order to do that, we have to change the original line of this field (assuming it was, for example, field number 5):
<input type="text" name="field5">
To the following lines, that represent the options you want to show him:
<input type="checkbox" name="field5" value="Cat"> <input type="checkbox" name="field5" value="Dog"> <input type="checkbox" name="field5" value="Birds">
The example above will display three checkbox, each one with another option. Since this is a checkbox field, the value tag will contain the value we'd like to see in the recipients details. Please make sure that the value is in inverted commas, like in the example.
It is very important to make sure that the name tag contains the name of the field we'd like to put the values in (in the example: field5 is a field from our account. It could also be a free field (only sent by email to account owner), in that case we should have name it free_text1, like explained in the previous page.
Please note that in case the recipient will choose more than one option, the chosen values will be separated by commas in his recipient's details.
See also
|