Dependent field conditions
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 45/100
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
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from statamic/cms
-
Difficulty 1/5 Under an hour Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
assets
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
Maintainers usually reply within 1 day
-
accessibility
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
Maintainers usually reply within 1 day
-
antlers
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
Maintainers usually reply within 1 day
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 2 days
-
b:1.9 t:enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
Maintainers usually reply within 3 days
-
backend bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100