Skip to content

Schema: conditional-visibility rule editor #20

Description

@Adron

Scope

A column can be shown/hidden based on another column's value:

{ "key": "studentId", "type": "text", "label": "Student ID",
  "visibility": { "condition": { "field": "ticketType", "operator": "equals", "value": "student" } } }

Operators

equals, notEquals, contains, notContains, greaterThan, lessThan, greaterThanOrEqual, lessThanOrEqual, isEmpty, isNotEmpty (the last two ignore value).

Documented semantics to honor

  • Visibility controls form display. A hidden column is skipped during row validation while empty — so a required column hidden by its condition is not enforced until the condition makes it visible.
  • Conditions may only reference columns appearing earlier in fields; visibility is evaluated in displayOrder.
  • One condition per column — there is no and/or grouping.

Acceptance criteria

  • Rule builder: watched field (restricted to earlier columns), operator, value.
  • The row editor evaluates conditions live, showing/hiding fields as values change.
  • Hidden-and-empty required fields are not blocked client-side, matching server behaviour.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Deptharea:listsArea: listsparityWeb/API feature-parity work

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions