REGEX validation

Home Forums Quform WordPress REGEX validation

This topic is: not resolved
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #6943
    kendavies
    Participant

    Hi. I need to add validation for UK postcodes. I have found several patterns online and this one from the UK government..

    (GIR 0AA)|((([A-Z-[QVX]][0-9][0-9]?)|(([A-Z-[QVX]][A-Z-[IJZ]][0-9][0-9]?)|(([A-Z-[QVX]][0-9][A-HJKSTUW])|([A-Z-[QVX]][A-Z-[IJZ]][0-9][ABEHMNPRVWXY])))) [0-9][A-Z-[CIKMOV]]{2})

    The issue I’m having is that it doesn’t work when I put it in the field in the form. Having looked at the help section it refers to using js functions as well as a pattern. https://support.themecatcher.net/quform-wordpress/guides/advanced/adding-a-masked-input-field. Is this the case and if so what js?

    #6956
    Ally
    Support Staff

    You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.

    #7002
    kendavies
    Participant

    Worked a treat, thanks

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
Be inspired. © 2024 ThemeCatcher Ltd. 20-22 Wenlock Road, London, England, N1 7GU | Company No. 08120384 | Built with React | Privacy Policy