Title: Validating custom fields
Last modified: August 22, 2016

---

# Validating custom fields

 *  [Czimpy](https://wordpress.org/support/users/czimpy/)
 * (@czimpy)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/validating-custom-fields/)
 * I have an issue with validating custom fields as required.
 * I am using a checkbox to add a ‘Confirmation’ field, that users must tick to 
   confirm they have read the Terms and Conditions. I have set this as a required
   field. This works fine, in that it doesn’t allow me to submit the form without
   this box checked. The trouble is, when the submission is rejected, it doesn’t
   keep the data for the other custom fields that I have on the form, resetting 
   them to blank. Is there any way around this?
 * [https://wordpress.org/plugins/wp-user-frontend/](https://wordpress.org/plugins/wp-user-frontend/)

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

 *  [asd315](https://wordpress.org/support/users/asd315/)
 * (@asd315)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/validating-custom-fields/#post-5395361)
 * The same problem
 *  Plugin Author [weDevs](https://wordpress.org/support/users/wedevs/)
 * (@wedevs)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/validating-custom-fields/#post-5395362)
 * Hello Czimpy and asd315,
 * Are you using the latest version of the plugin?
 * I have tested with a required field and left it blank. The form is not submitting.
 * Can you please explain the scenario in detail?

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

The topic ‘Validating custom fields’ is closed to new replies.

 * ![](https://ps.w.org/wp-user-frontend/assets/icon-256x256.gif?rev=2818776)
 * [User Frontend: AI Powered Frontend Posting, User Directory, Profile, Membership & User Registration](https://wordpress.org/plugins/wp-user-frontend/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-user-frontend/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-user-frontend/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-user-frontend/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-user-frontend/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-user-frontend/reviews/)

 * 2 replies
 * 3 participants
 * Last reply from: [weDevs](https://wordpress.org/support/users/wedevs/)
 * Last activity: [10 years, 11 months ago](https://wordpress.org/support/topic/validating-custom-fields/#post-5395362)
 * Status: not resolved