How can I give an empty material UI text field a value of null, when submitting the form, instead of an empty string? #2513
Unanswered
REDLIGHTFILMS
asked this question in
Q&A
Replies: 2 comments 9 replies
-
if your backend needs an empty string to null, do a parser at the submit level. in my opinion, its much easier to, parse and format inline input as I stated in the other question. |
Beta Was this translation helpful? Give feedback.
5 replies
-
check the doc, it's your best reference. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
My problem is that the default value of the text field is zero but when I submit the form the value of the text field is an empty string and I don't want that. I want the value to be zero at the end. How can I implement this?
A part of my JSON:
But what i want is this:
Beta Was this translation helpful? Give feedback.
All reactions