Phone Number Format Script - Infigo Designer Advanced

We have a phone number format script that will allow you to change how your phone number will output for your template. 

**You need to enable Advanced Mode before proceeding with these steps. 

Step 1 - Update Advanced Mode


This step is critical as it enables the advanced button to appear in the Javascript Management in Infigo Designer. 

First, you will need to enable another advanced mode in Infigo Designer. On your local machine, you will need to Run "regedit". 

From here, you will want to follow this path: HKEY_CURRENT_USER > Software > Mapsoft > InfigoDesigner. The third value from the bottom, called ShowAdvanced, right click on this. Press Modify, and in Value Data, type in 1. Press OK. 



Open [HDD] > Users > [User] > Library > Preferences > InfigoVI Preferences and set 'ShowAdvancedButton' value to '1',

If you do not see your the Library folder refer to these links:


Step 2 - Insert the JavaScript File into Infigo Designer

Now, navigate to  Infigo Designer > Javascript Managment. Click Advanced. 


 In the Event drop-down, change the event to Perform before groups.


Press Add, then paste in the javascript code from NotePad (or any other code editing program).


Next, change the event to User fired event, press Add. 


Paste in the code as you did before, then press OK.



Step 3 - Apply the Script to your Field

Press Infigo Designer > Predefined Javascripts. Hit Phone number script, then press Run Script.


Select the field you wish to apply this too, then select the format you need. Please note, items in Brackets [] are either local or global variables. If you are using a local or global variable field, please apply the script to that field. In the example, Phone1 is the text field and [Phone1] is the local variable. 



To check if the field has the formatting applied, navigate to the field (or local or global variable), and in the Properties tab, you will see a PhoneNumberFormat field.


Have more questions? Submit a request


  • 1
    Keegan Leonard

    Just in case anyone was like me and missed the java link. It is right above Haydyn's name at the bottom of the article.


  • 1
    Dean Moncaster

    "The third value from the bottom, called ShowAdvanced, right click on this."

    They mean "The third value from the bottom, called ShowAdvancedButton, right click on this."

    Edited by Dean Moncaster
Please sign in to leave a comment.