close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

International phone numbers issue (checkout form)

Thread began 10/15/2020 1:57 pm by yogastudents362523 | Last modified 10/19/2020 2:46 pm by yogastudents362523 | 452 views | 6 replies


International phone numbers issue (checkout form)


The input code including validations for telephone numbers on the checkout page are as follows:

<input id="Phone_Number" name="Phone_Number" type="text" value="<?php echo(WA_coalesce(array(WA_getSavedFormValue("CheckoutWizard_Basic_Default","Phone_Number"),(isset($_GET["invalid"])?ValidatedField("kofiAdonateconfirmcart","Phone_Number"):"")))); ?>" class="formTextfield_Large" tabindex="5" pattern="\(\d{3}\) \d{3}[\-]\d{4}" title="Please enter a 10 digit phone number" required="true" onBlur="WAValidatePN(document.getElementById('CheckoutWizard_Basic_Default').Phone_Number,'',false,true,'x (xxx) xxx-xxxx',document.getElementById('CheckoutWizard_Basic_Default').Phone_Number,0,true);">

I am concerned with the string of x's that seem to indicate the "picture" for telephone formats.

I am concerned that I have foreign people coming in to make Donations, and who then find that they cannot enter a valid number in that formatl

How would you advise that I handle this? I.e. somehow validate that only numbers are permissible, while allowing for greater flexibility of inputs.

Thank you,

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question





Ease of use


security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...