Remove default values from form data #4473
Answered
by
heath-freenome
anders-kiaer
asked this question in
Q&A
-
We have a JSON schema where many of the fields having a default value, and would like the outgoing form data to be a small as possible. What will be the easiest way to hava as "minimalistic" form data output as possible, where all fields having the default value are removed? |
Beta Was this translation helpful? Give feedback.
Answered by
heath-freenome
Mar 28, 2025
Replies: 1 comment
-
Hi @anders-kiaer You can try using the emptyObjectFields flag of the |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
anders-kiaer
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @anders-kiaer You can try using the emptyObjectFields flag of the
experimental_defaultFormStateBehavior
prop onForm
and set it to one of the other values until you find the one that works for you.