Thinkmill / keystatic

First class CMS experience, TypeScript API, Markdown & YAML/JSON based, no DB
https://keystatic.com
MIT License
1.23k stars 79 forks source link

Feature Request: Option to preserve hidden conditional field values #1349

Open couhajjou opened 1 week ago

couhajjou commented 1 week ago

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.