Jump to content

Formatting International Phone Numbers in QR Code


Recommended Posts

I have reviewed other topics in this forum for international numbers, but none are a solution for me regarding QR Codes.

I have a business card with international names, address and Phone numbers for example. 

I have attached a pdf proof as an example. 

The problem is the QR Code Form keeps converting the intl phone number to a domestic style. It over rides the javascript. 

image.png.b2aa99e32483161b2476aa33f0d39dba.png

I guess I would need to not use a Form for QR, but a whole jasvascript for it. Is there a solution for that?

I picked this rule up from the forum, it worked as a stand alone, but it didn't work in the QR code for me. 

var s = "4915161156739";
s = s.replace(/\D/g,""); // remove anything but digits to strip out any pre-existing formatting
return (s.length == 13) ? "+" + Left(s,2) + " " + s.substring(2,6) + " " + s.substring(6,9) + " " + Right(s,3) : "";

 

21904_DPR BC_Charnell Knorzer 4-10_Proof_r1.pdf

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...