smartsuite_set_display_logic
Show or hide fields, sections, or tabs based on conditions set on other fields. Supports multiple conditions combined with and/or logic, and allows clearing existing rules.
Instructions
Add, modify, or remove display (visibility) logic on a field, section, or tab — show it only when conditions on other fields are met. Requires readwrite/admin + SMARTSUITE_ENABLE_SCHEMA_WRITE. Set target ("field"|"section"|"tab") + targetId (field slug / section__ slug / tab id) and conditions: an array of {comparison, field, value} combined by operator ("and"/"or"); pass clear:true to remove the rule. Example: show the Priority field only when Status is complete → target:"field", targetId:"priority", conditions:[{comparison:"is", field:"status", value:"complete"}]. Common comparisons: is, is_not, is_empty, is_not_empty, contains. Dry-run preview unless confirm:true.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| clear | No | Remove the existing rule from the target (ignores conditions). | |
| target | Yes | What the rule controls. | |
| confirm | No | Must be true to apply (default false = preview). | |
| operator | No | How multiple conditions combine (default and). | |
| targetId | Yes | Field slug, section__ slug, or tab id (matching target). | |
| conditions | No | Conditions: [{comparison, field, value}]. The target shows when these are met. | |
| applicationId | Yes | The application (table) ID. |