Opadeez Help Center

Data Set Attributes Rules

Overview

Attribute rules are used to define under which condition a field shall become mandatory, visible and/or read-only. For each field specific rules can be defined on different data set entities. At runtime rules will be automatically executed to adapt the display of the field within the page.

Data Set Attributes Rules Configuration

Data Set Attributes Rules interface for configuring field behavior conditions

Rule Types

Visibility Rule

Mandatory Rule

Read-only Rule

Rule Configuration

Attribute Name

Rule Syntax

The rules syntax is based on the Opadeez Scripting Language and supports:

Scripting Reference: For complete syntax documentation, operators, functions, and examples, see the Opadeez Scripting Language Reference.

Dynamic Rule Behavior

Important: When a rule is dynamic (uses values of other fields that can be modified on screen), it is necessary to put on the screen all the fields used in the condition, in order for the condition to be dynamically updated on the screen.

Dynamic Updates

For example, if Field "A" has a visibility rule stating "B <> 0 AND C <> 0", it is necessary to have both fields B and C on the screen to allow A to become dynamically visible or hidden when the value of B and C changes. Otherwise, the visibility rule will be refreshed only when the page is refreshed.

Field Dependencies

Practical Examples

Conditional Visibility

Conditional Mandatory

Conditional Read-only

Complex Conditions

Best Practices

Rule Design

Performance Considerations

User Experience

Common Use Cases

Progressive Disclosure

Data Validation

Workflow Control

Role-Based Access

Troubleshooting

Rules Not Working

Performance Issues

Related Topics

Pro Tip: Start with simple visibility rules to show/hide sections of forms, then gradually add mandatory and read-only rules as needed. Always test rules with real user scenarios to ensure they behave as expected.