Limitations of Field Visibility Rules
- You can add a maximum of 10 rules per content type.
- You can add a maximum of 5 conditions per rule.
- You can add a maximum of 5 target fields per rule.
- The target field and the operand field cannot be the same within a rule.
- In case of contradictions, the action defined for the parent field takes precedence over the action defined for the child field. For example, if your rule says to hide the Group field and show a sub-field of that Group field when a condition is met, it will not show the sub-field.
- If you delete a field or edit its properties when it is used as an operand or target field, the rule becomes invalid. You must delete the rule in such a case.
Limitations on Operand Field
- The operand field cannot be any of the following fields: Rich-Text Editor, JSON Rich Text Editor, Markdown, Modular Blocks, File, Link, Group, Custom, Taxonomy field, or any sub-field of a Modular Block or Group.
- The operand field cannot be any field marked as Multiple.
- The operand field can be a sub-field of a Group or Global field, but the parent field should not be marked as Multiple.
- The operand field cannot be a field that is of JSON data type.
- The operand field cannot be a Select field where the Selection Type is set to Multiple Choices.
Limitations on Target Field
- The target field cannot be any field marked as Mandatory. This is because when a target field is hidden, the entry is saved with an empty value for that field.
- The target field cannot be a sub-field of a Modular Blocks, Group, or Global field marked as Multiple.
- You cannot set a field as a target field more than once in a content type.
- The target field cannot be the same as the operand field of any rule.
- Any field that has validation applied cannot be used as the target field. The validations are as follows:
- A specified date range (a specific start and end date)
- A maximum instance limit (any multiple field)
- A limit for Multiple Choices in the Select field
- Mandatory field validation
- Character length constraints, for eg., the blog name with a character length between 10 and 20
- A range of numbers, for eg., 10 to 15
- Regular Expression validation
- Dimension constraints (e.g., image dimensions) and file extensions (e.g., .jpeg, .png)
Limitations for Global Fields
- Rules for a multiple Global field apply per instance, not across all instances.
- Fields inside a Global field cannot be used in rules if they are themselves marked as Multiple.
- Rules can only target fields within the same Global field.
- When a Global field with rules is referenced in a Content Type, the rules are inherited into the Content Type in a read-only state.
- Inherited rules from a Global field cannot be edited or deleted at the Content Type level, they must be updated in the Global field’s Field Visibility Rules settings.
- All operand and target field restrictions that apply to Content Types also apply to Global fields.