Learn how to conditionally show, hide, disable, or enable a field in your Smart Form.
You can use conditions to decide whether a field is shown to a respondent. For example, you might want to show a field if the respondent has selected a particular product or lives in a specific location. You can also use conditions to show a field but prevent respondents from entering an answer.
For example, suppose we want to ask for registration information if the respondent has entered the owner’s first and last name. If the owner’s name hasn’t been provided, we want to hide this field. We would use the following conditions to accomplish this.
Tip Before adding conditions to a field, you must (1) add a data binding to the field, and (2) save the Miniform.
Open the Advanced tab
Click the Advanced tab for the field.
- Select the toggle switch beside Make this field conditional.
- Select the activity to perform if the conditions are true.
- Show the field and allow respondents to enter an answer.
- Show the field but don’t allow respondents to enter an answer
- Don’t show the field.Tip If a required field is hidden, the field is no longer required.Tip When a field is hidden, any dependencies based on the field are removed. For example, the hidden field would no longer be used as part of a Logic Branch.
- Show the field.
- Choose whether ALL or ANY of the conditions must be true.
- Select + add condition and enter the following information.
- Select a data binding
- This is the data binding you want to check. In our example, we’ve used owner.firstName and owner.lastName.
- Select an operator
- Decide how to evaluate the data binding value. In our example, we’ve used is not null/empty.
- Enter a value
- Enter the value you’re checking for. This option isn’t relevant to our example — we’re just checking that the field isn’t empty, not looking for a specific value.
- Ignore Case
- Select this option if it doesn’t matter if the value contains uppercase or lowercase letters. For example, if you’re checking a value the respondent has typed into a Short Text field, you may want to ignore the case. This option isn’t relevant to our example so we haven’t selected it.
- When you’re done adding conditions, click APPLY.