• Resolved peter8nss

    (@peter8nss)


    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)
  • Thread Starter peter8nss

    (@peter8nss)

    The problem is linked to how the id field is set for repeating group subsequent items. Whereas the field name in the field data array is, say, “number-1-2” (and that is what the plugin uses when generating a server side error messages) the id in the form is actually something like “number-1-1j38bpfj604e940035982a1” where “1j38…” equates to the “original_id” stored in the fields “field_array”.

    Plugin Support Nithin – WPMU DEV Support

    (@wpmudevsupport11)

    Hi @peter8nss,

    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 be sure we are on the same page, in the second case, the form doesn’t highlight which field has the issue when compared to the 1st case, where the field will get highlighted with a message like “This field is required. Please enter a number.” Correct?

    I do get what you have pointed out, and I’m reporting this to our Forminator team’s attention so that this could be fixed in the next update.

    Regards,

    Nithin

    Thread Starter peter8nss

    (@peter8nss)

    To be sure we are on the same page, in the second case, the form doesn’t highlight which field has the issue when compared to the 1st case, where the field will get highlighted with a message like “This field is required. Please enter a number.” Correct?

    Yes

    Plugin Support Nithin – WPMU DEV Support

    (@wpmudevsupport11)

    Hi @peter8nss ,

    Thanks for confirming. We have reported this, and hopefully it will be resolved in the next update. At the moment, there isn’t any exact ETA we could provide.

    Regards,

    Nithin

    Hi @peter8nss

    As said above, this was already forwarded to our developers, and I am marking this thread as resolved, but if you have any additional questions, feel free to let us know.

    Kind Regards,
    Kris

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Repeating Group field validation problems’ is closed to new replies.