The Big Spring Sale! Up to 50% off!

Phone field in standard form will not recognize input matching regular expression formatting.

jack281
7 Posts
jack281 posted this 11 August 2020
Ask a Question

I created the Nicepage form in a page, but it will not accept the phone entry that matches the regular expression ^[2-9]d{2}-d{3}-d{4}$
So if the user enters 214-444-5555, for example, it shows "Please match the requested format"
What is the problem? Also tried (((\d{3}) ?)|(\d{3}-))?\d{3}-\d{4}

What is the procedure to insert an third party form using a shortcode, such as a Gravity form? We tried using a Text Widget and the form shortcode, but the page will not save. It shows an error, as shown in the attached screenshot.

I created the Nicepage form in a page, but it will not accept the phone entry that matches the regular expression ^[2-9]d{2}-d{3}-d{4}$ So if the user enters 214-444-5555, for example, it shows "Please match the requested format" What is the problem? Also tried ((\(\d{3}\) ?)|(\d{3}-))?\d{3}-\d{4} What is the procedure to insert an third party form using a shortcode, such as a Gravity form? We tried using a Text Widget and the form shortcode, but the page will not save. It shows an error, as shown in the attached screenshot.

Last edited 11 August 2020 by jack281

Vote to pay developers attention to this features or issue.
1 Reply
Order By: Standard | Newest
Support Team
Support Team posted this 12 August 2020

Hi John,

I've tried the second regexp, and it works ok with the provided phone example.

If you plan to use the third-party shortcode to display the form, please use the Shortcodes control for this. Please note that this should be a shortcode like [gravityform id="1" ... ]. You cannot insert the PHP code here.

The error 500 is a generic error. If the issue continues, please reproduce it and check server logs for more details. You should see the real error here.

...................................................
Sincerely,
Olivia
Nicepage Support Team

Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1
Follow us on Facebook: http://facebook.com/nicepageapp

Hi John, I've tried the second regexp, and it works ok with the provided phone example. If you plan to use the third-party shortcode to display the form, please use the Shortcodes control for this. Please note that this should be a shortcode like [gravityform id="1" ... ]. You cannot insert the PHP code here. The error 500 is a generic error. If the issue continues, please reproduce it and check server logs for more details. You should see the real error here. ................................................... Sincerely, Olivia Nicepage Support Team Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1 Follow us on Facebook: http://facebook.com/nicepageapp
You must log in or register to leave comments