Skip to content

Implement Conditional field visibility #2593

@snopoke

Description

@snopoke

Problem

We use Pydantic models to generate JSON schemas that drive our React UI. Some fields should only be visible/editable when other fields have specific values. While we can validate this on the backend with Pydantic validators, the UI needs to know these rules to hide/disable fields appropriately.

Solution: Extend UiSchema with visible_when

We'll extend our existing UiSchema helper to include conditional visibility rules that get embedded in the JSON schema.

Full spec: https://docs.google.com/document/d/13xXgbe4GCACakv-b-vpntDo5mgduueQmovFfGAQTIw4/edit?-tab=t.0#heading=h.35zj01kzi5g5

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    🔖 Ready

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions