Visibility Rules Field Values Are Not Displaying on the Form
Description description
After setting up visibility rules on a form, you are not seeing the dynamic values for the field when you are testing the form.
Resolution resolution
The most likely reason that the dynamic values are not displaying is because of a discrepancy between the visibility rules and the field values. The value for the visibility rule must match the field values.
Example: A common example of this is Country/State dynamic visibility. Based on the Country selected, the State field will show with dynamic values. So say that on the form, there are 50 values for the State field and there are also specific values under the visibility rules that are associated with the Country selection. It is likely that the values in the visibility rules do not match up with these 50 field values. If you select US and the dynamic values are the full State names, such as California, but the value in the State field is CA, the visibility rules will be attempting to display a value that does not exist.
The solution is to either change the visibility rules’ values, or change the field values, so that the values match.
Additional Notes/Gotchas:
Values Must Match Exactly
When using Visibility Rules for a ‘Select’ field type (picklist), all values in the Visibility Rules list must also exist in the Values list. When a value in the Visibility Rules picklist does not exist in the field Values list, it won’t appear when the form is displayed. These values must match exactly to appear on the form picklist.
Note: For more info on adding picklist values for the Select field itself within the form, see our doc for an example.
Trailing Spaces are Easy to Miss
The display text appears to the left of the | character and the values appear to the right. With values on the right, it’s easy to add an extra space at the end of the line (trailing space) which can cause the values not to match exactly (unless the space is in both values).
example: if the value ‘OR’ exists in the Values list and the Visibility Picklist contains 'Oregon|OR ', neither OR nor Oregon will appear in the picklist since there is a trailing space after ‘OR_’ in the visibility picklist.