Visibility conditions allow you to show or hide fields/sections on your form.
- Configurable per field
- If the condition results in a 'true' statement, the field or section will be shown, otherwise hidden
- Variables need to be prefixed by
values.
orcaze.
(the Z in caze is not a type-o) - Any value stored in your case is available
- Note: All case values are available - if a value was set previously on another form, you can use the 'Storage Field' prefixed by
caze.
)
- Note: All case values are available - if a value was set previously on another form, you can use the 'Storage Field' prefixed by
- Any value on the current form is available
- Note: To access a value from the current form use the 'Storage Field' prefixed by
values.
)
- Note: To access a value from the current form use the 'Storage Field' prefixed by
- Simple example, add a field and set the condition to:
values.firstName == 'Me'
then type Me in the first name field in the form preview- Note: If everything is setup correctly your new field should show up!
- You can include multiple conditions in one line. Change the condition to:
values.firstName == 'Me' && values.lastName == 'Him'
- Hint: put Him in the last name field in the form preview, you new field will show up again!)
- Use '&&' for an AND statement
- Use '||' for an OR statement
- Parentheses '()' can be used to nest conditional logic
- Use '!=' instead of '==' for: while does not equal/everything but a certain value
- String field values require 'single quotes'.
- Checkboxes are
true
orfalse
. - Radio buttons and select fields values are based on the value of each option.
- Both checkboxes and radio button hold no value until selected or unselected
To set visibility conditions on a form field:
1. Click the 'Pencil' for the form field that you would like to set a visibility condition on
2. Set the 'Condition' field using the following syntax:
- values.otherformfieldname == 'Test'
- For example, if you had three form fields (FirstName, LastName, and City) but only wanted to ask the user to fill out 'City' if there last name was 'Jones'
- The syntax used would be:
- values.LastName == 'Jones'
- Using the above example, the only time the City field would ever appear is if the user entered Jones as the LastName.
- Note: you can also combine conditions. An example is:
- values.FirstName == 'Bill' && values.LastName == 'Jones'
- If using a check box form field type, the values are either True of False. For example:
- values.InterestedYes == true
3. Click 'Save' when completed
Comments
0 comments
Article is closed for comments.