Title: Errors with Required Fields not Working
Last modified: June 5, 2019

---

# Errors with Required Fields not Working

 *  Resolved [WP CMS Ninja](https://wordpress.org/support/users/billiardgreg/)
 * (@billiardgreg)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/errors-with-required-fields-not-working/)
 * So I have ran into an issue where I am requiring the fields that have been added
   through the plugin. When the customer attempts to Add To Cart without making 
   sure all the Required Fields are filled out it brings then back to the product
   page with all of the fields reset and no error message. How do I go about first
   off getting an error message to display and secondly how do I go about if it 
   fails to add to cart have it leave the successfully filled out fields in place?

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

 *  Plugin Author [Saravana Kumar K](https://wordpress.org/support/users/mycholan/)
 * (@mycholan)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/errors-with-required-fields-not-working/#post-11610535)
 * 1. Did you set the “Message” configuration for those fields on the back end.?
   
   If no message been set then there won’t be any validation error message shown.
 * 2. Regarding the previous value restoration (if validation failed). that option
   is already there, its by default will work, unless you have enabled Fields Cloning
   option (Which will also be fixed on our upcoming release)
 *  Thread Starter [WP CMS Ninja](https://wordpress.org/support/users/billiardgreg/)
 * (@billiardgreg)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/errors-with-required-fields-not-working/#post-11612038)
 * So I have gotten the validation message’s working now, I didn’t realize that 
   those needed to be set.
 * But as to the Previous Value Restoration, Fields cloning has been disabled on
   all of the fields although I do not believe any of them were set to be clone-
   able at the plugin level. I am not seeing the previously entered in values being
   left in place if it fails the submission validation.
 * I even tried enabling Ajax to see if it allowed for javascript validation before
   submitting and it still erases all entered information.
    -  This reply was modified 6 years, 11 months ago by [WP CMS Ninja](https://wordpress.org/support/users/billiardgreg/).
 *  Thread Starter [WP CMS Ninja](https://wordpress.org/support/users/billiardgreg/)
 * (@billiardgreg)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/errors-with-required-fields-not-working/#post-11612063)
 * So I turned on **Client Side Validation** and was able to get it working there
   so it resolved the need to keep the previous value entered but shouldn’t it also
   keep previously entered in values if this was not enabled?
 *  Plugin Author [Saravana Kumar K](https://wordpress.org/support/users/mycholan/)
 * (@mycholan)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/errors-with-required-fields-not-working/#post-11613462)
 * Yes it should, I will make sure it resolved with our upcoming release.

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

The topic ‘Errors with Required Fields not Working’ is closed to new replies.

 * ![](https://ps.w.org/wc-fields-factory/assets/icon-128x128.jpg?rev=2738843)
 * [WC Fields Factory](https://wordpress.org/plugins/wc-fields-factory/)
 * [Support Threads](https://wordpress.org/support/plugin/wc-fields-factory/)
 * [Active Topics](https://wordpress.org/support/plugin/wc-fields-factory/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wc-fields-factory/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wc-fields-factory/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [Saravana Kumar K](https://wordpress.org/support/users/mycholan/)
 * Last activity: [6 years, 11 months ago](https://wordpress.org/support/topic/errors-with-required-fields-not-working/#post-11613462)
 * Status: resolved