Add a relations array to your configuration. Each relation defines the from (parent) column, the to (child) column, and a mapping that specifies which child values are valid for each parent value:
With this configuration, selecting “Hardware” in the Risk Category column filters the Risk Type dropdown to show only “ESD Failure” and “Short Circuit”.
When the parent field value changes, Risksheet automatically updates the child dropdown options
If the parent field is empty or has no mapping entry, all child options are shown
If the parent value maps to an empty array, no child options are shown
Cascading changes are tracked in the undo stack — you can revert the entire chain with a single undo
Relationship mappings only work between columns with the same binding prefix. Cross-level relationships (e.g., master field to task field) are not supported and will be ignored.
When a parent value is deselected, any child multi-enum values that depended on that parent are automatically removed. This prevents invalid data combinations.
Risksheet supports both forward (parent to child) and backward (child to parent) relationship updates. If a child value requires a specific parent value and only one valid parent exists, the parent is auto-populated.
When you select multiple rows and edit a parent enum field, all dependent child fields across all selected rows update automatically according to the configured relationship rules.
You should now see that when you select a value in the parent column, the child column dropdown filters to show only the mapped options. Changing the parent value should automatically clear or update the child value if the current selection is no longer valid.