Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Dependent field conditions

Open
#13,622 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
45/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Stale
Tech stack
php
Domain
frontend

Research direction

Start by comparing the behavior described here with the earlier fix in #11910 and the regression in #12362. Reproduce the three-field sequence: enable field 1, enter text in field 2, then disable field 1. Done means field 3 also disappears when field 2 is hidden.

Written by the indexing model from the issue text.

Description

field conditions
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.

Dominant language
PHP
Stars
4.9k
Forks
647
Avg merge
1d 8h
Merged PRs (30d)
100

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from statamic/cms

All issues in statamic/cms

Similar issues

More PHP issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.