Adding support for getting single field values in @mantine/form #7201
anthonyalayo
started this conversation in
Feature requests
Replies: 1 comment
-
If you can set a value with a path you need to be able get a value that way as well. You already have a path traversal function to be able to set it - you should just provide similar for getting a value. In my case, my forms are heavily dynamic and driven from configuration. I have to write an ancillary function to get with a path when it should just be part of the form API. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Going through the docs and code with use-form:
https://mantine.dev/form/use-form/#values
I can see that there is the ability to get all form values, but not a single form value:
This would be a great API to have for cases where you need to run logic on particular form fields. In my use case, I am trying to set a hidden input from a particular form field (since the javascript and html formatting is different due to an input mask).
Beta Was this translation helpful? Give feedback.
All reactions