YourPlugins

Show or hide fields with Conditional Logic

Part of Build a calculator.

All docs

Conditional Logic lets you show or hide calculator fields based on the current values entered in other fields.

In version 3.x, Conditional Logic is configured inside the calculator workspace.

  1. Create the fields you need in your calculator (instructions here).
  2. Create your spreadsheet calculator (instructions here) or your formula calculator (instructions here).
  3. Open the calculator workspace and go to the Conditional Logic tab.
  4. Turn Enabled to Yes.
  5. In Default Visibility, choose whether each field should start visible or hidden.
  6. In Field Rules, click Add rules or Edit rules for the field you want to control.
  7. Build the condition group in the rules modal and save it. When the condition matches, the selected field switches from its default state to the opposite state.
  8. Save the calculator.

Each field has its own rule group, and each rule is evaluated against the values of the other calculator fields.

Notes:
  • Conditional Logic works with both input and output fields.
  • When you configure rules for a field, that field is the target of the rule. The conditions must be based on other calculator fields, not on the same field itself.
  • When Conditional Logic hides a calculable field, that field may also contribute a different value to the calculation, such as 0 or its configured default value. After changing visibility rules, always verify the final result in the Preview tab.