Skip to content
This repository has been archived by the owner on May 2, 2024. It is now read-only.

Ability to persist form state as JSON ? #113

Open
thiloplanz opened this issue Oct 8, 2018 · 0 comments
Open

Ability to persist form state as JSON ? #113

thiloplanz opened this issue Oct 8, 2018 · 0 comments

Comments

@thiloplanz
Copy link

This is more of a question than a feature request, I am not sure if I should be wanting this or if there is a better way, but I find myself needing to store the current state of the form (for example to save it as a "draft" for later retrieval on a server). As soon as the input validates, I can convert it into my Model and have a Json codec for that, but the form may still be invalid (missing or illegal input).

Seeing that both field names and field values are just strings before they get turned into the Model, it seems that there could be a built-in function that can convert the form state into JSON and back again.

Am I completely off track here?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant