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
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:
In the Event drop-down, change the event to Perform before groups.
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
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.