Thinkmill / Thinkmill/keystatic
Feature Request: Option to preserve hidden conditional field values
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 2.4k
- Forks
- 159
- Avg merge
- 21h 41m
- Merged PRs (30d)
- 2
Description
Currently, when changing a select field that controls conditional fields, any values in the hidden fields are erased when switching back and forth between options.
Current behavior:
- Field A is visible when select value is "option1"
- User fills Field A with data
- User changes select to "option2" (Field A becomes hidden)
- User changes select back to "option1"
- Field A is empty - previous data is lost
Desired behavior:
Option to preserve field values when they become hidden due to conditional logic, similar to how some other CMS handle this
Use case:
When editing content, users might need to switch between options to compare or review different configurations without losing their work in progress. Currently, they have to re-enter all data if they switch back.
Contributor guide
No contributing guide indexed for this repository
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.
Research direction
No files, tests, or entry points are named in the issue. Start by locating the conditional-field handling in the TypeScript code and determine where hidden values are discarded. Define an opt-in preservation behavior, then verify that switching options retains and restores values without breaking existing conditional-field behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- content, frontend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100