You can set Conditional Formatting to hide, or show fields, adjust field colors based on their value or the values of other fields, lock Action Buttons, and more. Additionally, your Conditional Formatting will also be applied to the sheet's embedded form (currently only Database Form and Raw Embed).
See the following example: When a sheet contains various categories and subcategories of products, named "Product Category" and "Product Type" respectively. The product types are configured using Cascaded Selections, However, we don't want to display the "Product Type" field when the category "Special Collection" is selected.
Navigate to Conditional Formatting under Form Tools in the Design Mode.
Click New Rule to set options.
For example, we would like to show the field "Product Type" if the "Product Category" is not "Special Collection".
Multiple formatting conditions can be set by clicking + button.
You can click on New Rule to add a new rule. In the example below, we would like to color the label background of the "Product Name" field when the "Special Collection" category is selected. To set the color, you can click on the color swatch next to the field.
After saving, you can test the set rules.
Note: Hidden fields will only take effect in the layout interface. The field data will still be displayed in the change history or record update notifications. Therefore, if you want to hide the field based on different user access rights, it is recommended to use Field Level Access Rights settings.
Other than the example mentioned above, you can also compare a date field with time parameters. This is extremely useful when you want to highlight entries based on the date field on the Listing Page.
After setup, the system will execute each rule sequentially from top to bottom when editing records. If the same field is set in multiple rules, the result of the last executed condition will prevail. Therefore, if there are conflicts between conditions, the execution results may not be as expected. Please refer to this document for corrections.
You can also show, hide, or lock Action Buttons through Conditional Formatting. For instance, in "Purchase Requisition", you may hide the "Create PO" Action Button when the logged-in user is not "Procurement Officer" to prevent from inadvertently pressing the Action Button.
You can set the fields as Read Only with Conditional Formatting.
When a field simultaneously has Conditional Formatting for Read Only based on rules and a field-level Read Only setting, the Conditional Formatting takes precedence over the original field's Read Only setting.
You can set the fields as Not Empty with Conditional Formatting. This can only be applied to independent fields on the Form Page.
If a field already has a field-level Not Empty setting, it cannot be selected when setting Conditional Formatting.
You can also hide or show Field Descriptions through Conditional Formatting.
You can also only hide or show field values with Conditional Formatting.
When a sheet has Sheet Sections, you can set conditions to show or hide specific sections.
When selecting the Date or Time field as the condition field, you can specify the condition to be equal to, earlier than, or later than a specific date or time. Additionally, you can set whether it falls between a specified date or time range.
You may also specify the same conditions for the Current time.
When selecting the User field as the condition field, you can specify a particular user or group as the condition.
You may also specify a particular user or group condition for the Logged in User.
1. If a set of conditions includes multiple criteria, you can only use either AND or OR to relate them; you cannot combine both types of relations.
2. Comparing values with other fields is not supported.
If you have the above requirements, it is recommended to create a new Free Text field on the sheet and use a Conditional Formula to check the values, then set the Conditional Formatting based on the formula's result.
For example, if you want to set the rows where the "Actual Amount" exceeds the "Estimated Amount" to have a red background:
First, add a new field that applies a Conditional Formula to determine if the record meets the criteria.
Then, set the Conditional Formatting based on the formula result (Yes, No).
1. Conditional Formatting for Form Pages and Listing Pages needs to be set separately.
2. Avoid duplicating field attributes between field properties and Conditional Formatting.
(a) If a field is set as Not Empty or Hidden, you cannot select the same field to be Not Empty or Hidden/Shown in Conditional Formatting settings.
(b) Manually setting a field as Not Empty or Hidden after Conditional Formatting has already designated it as Not Empty or Hidden under specific conditions will override the Conditional Formatting and automatically remove the setting.
(c) When a field is set as Read Only, Conditional Formatting takes precedence over field property settings. It is recommended to retain the Conditional Formatting settings and remove field properties.
For example: Apply Conditional Formatting to make the "Total Amount" field Read Only when the "Status" field of a quotation sheet is marked as "Completed". Even if you set the "Total Amount" field as Read Only, it can still be modified when the "Status" field is not "Completed". The Read Only status of the "Total Amount" field only applies when the "Status" field is marked as "Completed".