Replies: 1 comment
-
Closing due to finding the error (conditional rendering of the form/form inputs interrupting the input registering). |
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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Background:
We are having issues with form validation on an application form whose input properties (name,type,id,placeholder) come from the storyblok content management system.
Issue:
We loop through the CMS input field data, and then render custom input components with required validation. When submitting the form with empty fields, only the first input field gets validated. If you enter valid data into the first field, the form can still be submitted even though the rest (with required validation) are empty. The errors object also only contains that first input. We're pretty new to this and have looked through the existing discussions but couldn't find a relevant one, apologies if this is a duplicate question.
Beta Was this translation helpful? Give feedback.
All reactions