Replies: 2 comments
-
I can confirm that if i remove the conditional validation the omitted field reappears. |
Beta Was this translation helpful? Give feedback.
0 replies
-
The solution was to provide a constraint to useForm with |
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
-
While building a two-part form, I noticed that a field was missing from the return of
useForm
. It's easiest to illustrate:Firstly I define the main schema and then a subset of it by omitting a single value.
The form requires two submissions, the first validates with the subset schema. The second against the full schema. Here is the useForm
The problem is that when trying to apply the props to the form fields, the
passcode
field is missing completely from the fieldset. I'm not quite sure why. The onValidate methods uses the full schema by default unless intent is set to confirm. What is stripping this field out?Beta Was this translation helpful? Give feedback.
All reactions