Title: Profile form error trapping
Last modified: December 6, 2024

---

# Profile form error trapping

 *  Resolved [markburton52](https://wordpress.org/support/users/markburton52/)
 * (@markburton52)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/profile-form-error-trapping/)
 * 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](https://docs.ultimatemember.com/article/1752-display-all-form-errors-below-the-form)–
   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](https://wordpress.org/support/users/yuriinalivaiko/)
 * (@yuriinalivaiko)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/profile-form-error-trapping/#post-18183672)
 * Hello [@markburton52](https://wordpress.org/support/users/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](https://gist.github.com/yuriinalivaiko/c6d4f651b53f3c37b8591014b7e1e3af).
    - Display all form errors in the popup. See [this gist](https://gist.github.com/yuriinalivaiko/3979f4fb19bf42929d1043b257ff5e28).
 * Regards
 *  Thread Starter [markburton52](https://wordpress.org/support/users/markburton52/)
 * (@markburton52)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/profile-form-error-trapping/#post-18184928)
 * 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.

 * ![](https://ps.w.org/ultimate-member/assets/icon-256x256.png?rev=3160947)
 * [Ultimate Member – User Profile, Registration, Login, Member Directory, Content Restriction & Membership Plugin](https://wordpress.org/plugins/ultimate-member/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ultimate-member/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ultimate-member/)
 * [Active Topics](https://wordpress.org/support/plugin/ultimate-member/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ultimate-member/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ultimate-member/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [markburton52](https://wordpress.org/support/users/markburton52/)
 * Last activity: [1 year, 6 months ago](https://wordpress.org/support/topic/profile-form-error-trapping/#post-18184928)
 * Status: resolved