• Resolved WP CMS Ninja

    (@billiardgreg)


    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

    (@mycholan)

    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

    (@billiardgreg)

    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 5 years, 9 months ago by WP CMS Ninja.
    Thread Starter WP CMS Ninja

    (@billiardgreg)

    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

    (@mycholan)

    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.