• Resolved markburton52

    (@markburton52)


    A shortcoming of the user profile form is the lack of inbuilt error trapping, so that if mandatory questions are not answered and people don’t check the whole form after clicking submit, then nothing is saved.  The best solution would be to have errors showing on field completion, rather than after attempted form submission. (Alternatively, they might be displayed in a list, as this code snippet shows – I think using the fields validation function – but seemingly only after attempted submission, which still has the risk of people leaving after hitting submit).  I’ve put big warnings in the form to not leave before checking that submission had no errors, but people still do.  This issue causes huge frustration for end users – we use the plug-in for artist submissions to our large community arts festival – so if anyone has a solution we’d be most grateful.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Yurii

    (@yuriinalivaiko)

    Hello @markburton52

    There is no easy way to validate fields before form submission. This requires a lot of customization. I recommend you using one of these solutions:

    • Display all form errors below the form. See this gist.
    • Display all form errors in the popup. See this gist.

    Regards

    Thread Starter markburton52

    (@markburton52)

    Thank you – the second option works for me and is just what I needed.

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

The topic ‘Profile form error trapping’ is closed to new replies.