Skip to content

[6.x] Dependent field conditions #13622

@jasonvarga

Description

@jasonvarga

Bug description

When a field has a condition based on another conditional field and you update the first field, the third field doesn't take effect.

[field 1, toggle]
[field 2, text, condition: show when field 1 is true]
[field 3, text, condition: show when field 2 is not empty]

enable field 1, you see field 2. field 3 is hidden.
type into field 2, field 3 appears.
disable field 1, field 2 disappears, field 3 remains but should also disappear.

How to reproduce

.

Logs

Environment

Statamic 6 beta 4

Installation

Fresh statamic/statamic site via CLI

Additional details

This was initially solved in #11910, but regressed in #12362 (semi-intentionally). I felt that issue was more important to get out there than this one which is more of an edge case.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions