Configure Visibility Rules
Quote-page components have their own rule system, separate from questionnaire rules. These rules control the visibility and behavior of elements within the quote page itself.
How to add visibility rules
Section titled “How to add visibility rules”Any component in the Quote-Page’s content array can have a ruleGroups field:
- Open the component you want to conditionally show/hide
- Find the ruleGroups field
- Add a rule group entry with:
- A
rulestuple:[condition, comparisons]where condition is"AND"or"OR" - Each comparison has an
op(operator) andvariablewithkey(answer path) andvalue - A
resultType:HIDDEN(remove from page) orDISABLED(visible but greyed out)
- A
- Save
See Quote-Page Rules Reference for the complete operator list and date-diff syntax.
Examples
Section titled “Examples”Hide a slider for a specific plan
Section titled “Hide a slider for a specific plan”On a coverage-amount range-input, add a rule group:
- rules:
["AND", [{ op: "equals", variable: { key: ["plan"], value: "BASIC" } }]] - resultType:
HIDDEN
This hides the slider when the user selects the BASIC plan. When they select any other plan, the slider is visible.
Show a slider only for PREMIUM
Section titled “Show a slider only for PREMIUM”To show something only for a specific plan, match the plans where it should be hidden:
- rules:
["OR", [{ op: "equals", variable: { key: ["plan"], value: "BASIC" } }, { op: "equals", variable: { key: ["plan"], value: "STANDARD" } }]] - resultType:
HIDDEN
This hides the slider for BASIC and STANDARD plans, effectively showing it only for PREMIUM.
Disable an add-on based on a previous answer
Section titled “Disable an add-on based on a previous answer”On a glass-coverage addon:
- rules:
["AND", [{ op: "equals", variable: { key: ["propertyType"], value: "APARTMENT" } }]] - resultType:
DISABLED
This disables the add-on (greyed out, not selectable) when the user lives in an apartment.
Troubleshooting
Section titled “Troubleshooting”Component still showing when it should be hidden?
- Check the comparison value exactly matches the answer (case-sensitive).
- Verify the answer key path in
variable.keyis correct. - Preview the questionnaire and check your answer.
Component hidden when it should be visible?
- Remember rules define when to HIDE. If you wrote a rule that matches the case where the component should show, you have the logic inverted.
- Check that you’re using
OR(notAND) when you need to hide for multiple different values.
See also
Section titled “See also”- Quote-Page Rules Reference — complete operator list, date-diff syntax, and rule-group schema
- Configure Footer Overrides — uses the same rule system for conditional footers
- Quote-Page Architecture — how quote-page rules differ from questionnaire rules