How to add visibility criteria and required criteria
You can control the visibility and required status of a field based on the values of other fields. Here's how to set it up:
- Click "Content Settings" in the field editor screen.
- If you want a field to be required, you can directly set its value to "1".
- If you want a field to be required based on the value of another field, click the "Plus" button.
- In the popup, define your criteria. For instance, select a field, change "Equal" to "Not Equal," and change "Static" to "Empty." This means that if the selected field is not empty, the field you're configuring will become required.
- Similarly, you can add visibility criteria. This means that if a field is not empty, the field you're configuring will be visible; otherwise, it will be hidden.