Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Pages - Customize & Extend
Unanswered

Basic form regex validation not allowing correct inputs when using a lookahead RegEx

(0) ShareShare
ReportReport
Posted on by 2

Hi all, 

 

Please help me with this, I have a requirement to use multiple regex to validate a mobile phone number field on a basic form within Power Pages, these are: 

 

1 - ^(07\d{8,12}|447\d{7,11})$ 

2 - ^[\x00-\x7F\xA0-\xFF]+$

 

I am trying to use basic form metadata on the field, but have seen that it is not possible to have 2 different basic form metadata pointing at the same attribute. So, I have combined these RegEx using the following expression: 

 

3 - ^(07\d{8,12}|447\d{7,11})(?=[\x00-\x7F\xA0-\xFF]+)$ 

 

Which has been tested and validated using regex101: build, test, and debug regex 

However, in power pages even when I input a valid uk mobile number e.g. 07788899900 the error message for the metadata still shows, not allowing me to submit the form. 

 

Am I missing something here? Does a basic form Metadata only allow a single RegEx? 

 

Please advise

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Pages

#1
Fubar Profile Picture

Fubar 69 Super User 2025 Season 1

#2
oliver.rodrigues Profile Picture

oliver.rodrigues 49 Most Valuable Professional

#3
Jon Unzueta Profile Picture

Jon Unzueta 43

Featured topics