LogicConfig
Configuration for conditional field logic.
Defines how field behavior changes based on conditions. Supports hiding, disabling, making readonly, or requiring fields based on form state or field values.
Properties
| Name | Type | Description |
|---|---|---|
| condition | boolean | | Condition that determines when this logic applies. Can be:
|
Example usage | ||
| type | "disabled" | "readonly" | "hidden" | "required" | Logic type identifier.
|
Example usage
// Hide email field when contact method is not email
{
type: 'hidden',
condition: {
type: 'fieldValue',
fieldPath: 'contactMethod',
operator: 'notEquals',
value: 'email'
}
}
// Disable button when form is submitting
{
type: 'disabled',
condition: 'formSubmitting'
}