|
Home > Advanced Options & Appendixes > Advanced Options in the Website Registration Form > Radio Button
Radio Button
The radio button gives us the possibility to obligate the recipient to choose only one option from the given ones, which makes it very useful for closed fields. The radio button is set quiet similarly to the checkbox.
For example, the field is "What is the color of your eyes?", we'll insert the radio as following (one line for each option):
<input type="radio" name="free_text2" value="Brown"> <input type="radio" name="free_text2" value="Blue"> <input type="radio" name="free_text2" value="Green">
As you can see, in this example the field is a free text field, that will be sent to the account owner by email once a new recipient has subscribed, however, won't be listed in his details in your account.
If we want to set a default value to a radio button, we can do it simply by adding the word 'CHECKED' to the proper line, as following: <input type="radio" CHECKED name="free_text2" value="Brown">
In this case, the 'Brown' will be checked by default once the page is loaded.
See also
|