Create a Gender field
The Gender field is also built in a similar way to the other two fields, but with a different component. For this field, we will be using the Select component. Therefore, we will need to present options to the user to select from. The values to be entered for this field are shown in the following screenshot:
Edit component: Gender (select)
Results
Configuration
Form components
Gender
This is used as a descriptive label when displaying this form element. Default value:
Add default value
Select Gender
The default value of the field. For multiple selects use commas to separate multiple defaults. — 0 Token values-
|
Options: * _______J |
1 Add options |
Female ^ | |
A list of selectable options. One option per line. Key-value pairs may be entered seperated by pipes, such as "safe_key| Some readable option", Option groups for lists and menus may be specified with <Group Name>. <> can be used to insert items at the root of the menu after specifying a group.
Description:
Your Gender
A short description of the field used as help for the user when he/she uses the form. — 0 Token values-
Check this option if the user should be allowed to choose multiple ualue
Select listbox or leave blank as default
0 Listbox
Check this option if you want the select component to be of listbox type instead of radiobuttons or checkboxes.
□ E-mail a submission copy
Check this option if this component contains an e-mail address that should get a copy of the submission. Emails are sent individually so other emails will not be shown to the recipient. To use the option with a select component you must use key-value pairs seperated by pipes, i.e. user@example.com|Sample user.
Additionally, we need to determine how this field will be presented to the user — as a listbox or as a checkbox. We will also determine whether multiple values are permitted. Thankfully, in this case, our user will be (hopefully) either male or female.
Post a comment