Radio Required - Form Steps #168
Unanswered
gabrieelaraujo
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Hi @gabrieelaraujo,
You will need to create a FieldRadios to handle this. I hope this can help. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a form with steps, eg: 1. Personal Data, 2. Address, etc..
One of the steps the person chooses a plane, and there are some radio inputs for the person to choose just one. I'm trying to put mandatory, it works just fine, but if I choose an option it doesn't validate the other radio, as if I hadn't chosen any option, then it only validates if I click on one by one.
Is there any way to do this other than doing a check in the step, checking if it's empty etc, directly in the RadioField component, for example?
Component (InputRadio.tsx)
Component: Step2.tsx
Maybe it's some detail I haven't seen yet lol, but I resorted to the following:
Can help me @ivan-dalmet ?
Beta Was this translation helpful? Give feedback.
All reactions