A Yes/No Field allows users to specify yes/no or true/false responses.
The label will display as the title of the field or the question that is being asked on the form. It is not recommended to leave the label blank because the label will be used as the column heading in Excel when form entries are exported.
The Type option allows you to control how the yes/no options will appear on your form.
Choose radio buttons to display both options.
Choose checkbox to display a checkbox to the left of the field's label.
The Toggle is similar to the radio buttons type, but displays a little differently.
Collect Payment For This Field
If you want to charge users based on what they choose in this field, check the box for Collect Payment for This Field. This will automatically select the Assign Prices? field and prompt you to connect your PayPal/Stripe account.
After linking with PayPal or Stripe, you’ll need to assign a price to each option in your field. These prices will be used to calculate the charges based on what your users select. If you leave these blank, they will be assigned a price of $0.00 automatically.
This option will automatically be selected when you enable the Collect Payment for This Field option. You can also select “Assign Prices?” only, if you’d just like to assign prices to each choice. These prices can then be used in a separate calculated price field, such as for quantities.
Choices are the available selections that will appear on your form.
- Other (custom)
If Other is selected, you can input your own custom true/false values.
Help text can be used to assist the user by providing additional instructions. Help text will display directly under the field.
The default value is the choice that is automatically selected on your form. The user can then choose to change the field's value before submitting the form.
Show This Field
By default, fields will always display on the form. However, you may want to hide specific fields or sections based on certain conditions such as a selected value of another field on the form.
- Always - Field is always shown.
- When - Field will only display when specific conditions are met. After selecting this option, the Conditional Logic Builder dialog will display allowing you to select when the field or section should be displayed.
- Internally - Field will not display on the public form and will only display when a Cognito Forms user is editing the form from the Entries page.
- Never - Field will never display.
Require Yes Response
Requiring a "Yes" Response will make sure the user provides a positive response such as Yes, True, Open, Active, or Read depending on the Choice option selected above.
When a "Yes" Response is required, an error message will display, and the form cannot be submitted until a positive response has been selected by the user. Required fields are indicated by a red asterisk next to the label. By default, fields are never required.
- Always - "Yes" Response is always required. User must provide a positive response in order to submit the form.
- When - "Yes" Response is required only when specific conditions are met. After selecting this option, the Conditional Logic Builder dialog will display allowing you to select when the "Yes" Response is required.
- Never - "Yes" Response is not required. This is the default behavior.
You can set a custom error message that will display under your field when specified conditions become true. The conditional logic builder will allow you to add any number of rules for validating your field. Learn more about the custom error option.