Repeating Group field validation problems
-
I have a repeating group, if I get a field error on the first item in the group, the field validation message displays correctly. If I get the same field error on the second or subsequent items in the group, then no field message displays. Although in both cases, I get the overall “Error: Your form is not valid, please fix the errors!”. So in the second case, my users don’t know what it is they have done wrong.
To demonstrate this:
- Create form with one repeating group containing just a number field which is “required” and has no range limits
- In behaviour unset “Enable inline validation” – so I can see the errors sent using filter “forminator_custom_form_submit_errors”
- Embed the form on a page
- Bring up page, leave the number field empty, press submit – error message is correctly displayed against the field. And it can see an error was sent for field “number-1”
- Fill in a valid number in the first item. Click “Add item”, but leave that one blank. Press submit. No message is displayed beside the field, despite an error being reported for field “number-1-2”
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
The topic ‘Repeating Group field validation problems’ is closed to new replies.