Thinkmill / Thinkmill/keystatic

Feature Request: Option to preserve hidden conditional field values

Open
#1,349 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
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:

  1. Field A is visible when select value is "option1"
  2. User fills Field A with data
  3. User changes select to "option2" (Field A becomes hidden)
  4. User changes select back to "option1"
  5. 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

  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.

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.