Skip to main content

Conditional Logic

Use the conditional logic to hide/show fields, toggle classes, change validation and more, depending on given field values.

Preparation

  • Include the conditional logic extension
  • Add the fb-cl-hide-element class with a display:none; property to your project style

Conditions

NameDescriptionOptions
Element ValueSelect fields which should have a conditional logicTypes: selected, greater than, less than, equal, is not, checked
Output WorkflowSelect output workflow to apply conditional logicAll available form output workflows

Actions

NameDescriptionRequire Depending FieldsOptions
Toggle VisibilityChange the visibility of one ore more fields.YesState: Show, Hide
Add ValidationAdd one or more validations to fields.YesValidation-Types: Drop-Down of given Validations
Remove ValidationRemove one or more validations of fields.YesAll Types: remove all validations of selected fields
Change ValueChange the value of one ore more fields.YesValue: mixed
Fire JS-EventFire custom javascript event of one ore more fields.YesEvent Name: string (only a-z0-9. chars)
Toggle ClassesToggle a Class of one ore more fieldsYesClass Name: string
Toggle AvailabilityToggle a availability stateYesState: Enabled, Disabled
Switch Output WorkflowSwitch entire Output WorkflowNoNone
Success MessageChange Success Message (Warning! Use this action with caution. If there is no "Output Workflow" condition, this action will apply to all given output workflows of given form)NoType: Text, Snippet, Redirect to Document, Redirect to external Page