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

rating

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 Ray Borduin | 22 views | 6 replies |

yogastudents362523

International phone numbers issue (checkout form)

Hello,

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,
KB

Sign in to reply to this post

Ray BorduinWebAssist

Remove the onBlur and pattern attributes and it will allow any entry.

Sign in to reply to this post
Did this help? Tips are appreciated...

yogastudents362523

Hello,

I tried various options for both removing and hiding various aspects of the above onBlur and pattern attributes, and none of them would work. Either the page would not load, or else I got errors.

I also tried hiding/removing the entire "<div class="lineGroup">" that holds the whole of that phone record, and the form responded by refusing to advance to the next page.

I am thinking that my best option is to do two things:
(A) Make that whole phone field optional,
(B) Remove the effects of that pattern.

How would I accomplish this for I am at present stumped!!

Thank you,
KB

Sign in to reply to this post

Ray BorduinWebAssist

Please attach the page so I can reference line numbers. Most likely my advice above is correct, but you probably have to update the server validation as well.

Sign in to reply to this post
Did this help? Tips are appreciated...

yogastudents362523

Hello,

Thank you.
I have attached the page.
It is the checkout page.

With every good wish,
KB

Attached Files
kofi_donate_checkout.php
Sign in to reply to this post

Ray BorduinWebAssist

I removed the restrictions on the phone number format.

Please download the files: kofi_donate_pp_confirm.php, kofi_donate_confirm.php, donate_confirm_cart.php, donate_checkout.php

Sign in to reply to this post
Did this help? Tips are appreciated...

yogastudents362523

Hello,

Confirming that tested and was able to enter an International format with no problems.

Also (as per other posting) d/led files.

Thank you for your kindness,
KB

Sign in to reply to this post

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

Content

rating

Layout

rating

Ease of use

rating

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...