• Resolved jrmedd

    (@jrmedd)


    Hello,

    I’ve encountered a small issue this week. I’m using a regular expression to validate a form input, which displays a customised validation error when displayed on Google, but just says ‘Must match pattern’ when using wpgform (which comes across a little clinical!)

    Any ideas?

    https://www.ads-software.com/plugins/wpgform/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Mike Walsh

    (@mpwalsh8)

    Do you have validation enabled with the Google Forms plugin? Is the validation radio button set when you define your form? If so, that is probably the issue. I added validation to the Google Forms plugin using jQuery Validate long before Google added it to Docs/Drive.

    What you are seeing is likely the different validation methodologies.

    Thread Starter jrmedd

    (@jrmedd)

    Mmm, I tried turning off jQuery validation in the form plugin and it displayed the correct message, but it would also let me submit the form without ticking any boxes in a required checkbox question.

    After toggling validation back on in the plugin settings, it also displayed all of the correct messages next to empty boxes, but still had the ‘must match pattern’ for an incorrectly filled regex box.

    Strange situation, apologies!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Regex validation message’ is closed to new replies.