Conditional Logic
Conditional logic can be added to fields using the show_if
or showIf
key in the field settings array. The show_if
key takes an array of conditions that must be met for the field to be displayed.
Below is an example of how to add conditional logic to a field:
In this example, the content
field will only be displayed if the hideContentSetting
field is not equal to true
. The show_if
key takes an array of conditions that must be met for the field to be displayed. Multiple conditions can be added to the show_if
key to create complex conditional logic.