Home › Forums › Quform WordPress › REGEX validation
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?
You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
Worked a treat, thanks