Skip to main content

Custom form field validation is a powerful way to improve lead quality and accuracy by filtering out unwanted submissions. That’s why we’re so excited to announce you can now create custom validation rules with regular expressions (regex) directly while editing your forms in Unbounce! (That’s right, no more workarounds required.)

With built-in form field validation, you’ll have more confidence in your lead quality by: 

  • Guaranteeing that visitors provide a business email address, ensuring you connect with serious prospects.

  • Requiring US or Canadian postal codes in their precise formats, securing accurate data for your nurture campaigns.

  • Limiting submissions to numerical values only—no more typos when you’re reviewing quote requests.

  • And so much more!

See it in action in our 4-minute walkthrough video:

Try it for yourself in-app, Learn more about common regex patterns you can use today in this article, and share your must-try regex patterns. 🔥

Powerful stuff! Any chance your team is working on reCAPTCHA implementation or similar anti-form-spam methods? 


Wow, amazing! I wanna try that out now!


I have been searching for a single feature for many years: the ability to combine the country code and phone number into one field. This would greatly improve lead quality by adding clarity. Additionally, implementing country-specific validations, such as requiring a specific number of digits after the country code, would help prevent fake numbers or missing digits.

In the past, I’ve always had to rely on a developer to integrate the country code list with the mobile number field in the same input. I haven’t come across this option yet, unless it has been added in a recent update that I missed.


Hey @bhanumeraki 👋🏻

I’m going to recommend this as an update to our regex documentation, as we don’t have an example pattern there now for country-specific phone number validations. 

Does having the custom validation option directly in the form builder help with your implementation, rather than a workaround solution? 


Hello @Ed_Ilnicki  Thank you for your response. To be frank, the current workaround solution is quite unstable and has numerous dependencies. Integrating it with different CRMs makes it challenging to manage and synchronise the data effectively.

Most CRMs have dedicated fields for phone numbers, which include both the country code and the mobile number. A standard option within Unbounce to handle this would significantly reduce the hassle, ensuring smooth data flow into the CRM while maintaining data integrity.

So yes, the custom validation option should be extremely helpful within the form builder will be a game changer.