Jump to content

Phone Number formatting for Bus Card


JHester

Recommended Posts

Hi folks, new to the board and new to Fusion Pro and Marcom.

I am looking for a rule that will format a phone number with these attributes.

O: 111.222.3333

The O would be changed out depending on the field i.e. Fax, Office, Cell, Etc. but the number formats would be consistent with the periods.

 

Clear as mud? Help me Obi-Wan Kenobi, your my only hope. ;)

 

Thanks!

Jason

Link to comment
Share on other sites

You don't need to write any JavaScript at all to do this.

 

There's a built-in Template rule called "Change phone format Rule" which does this. Select it from the "New Rule" dialog, and then select the field and the "123.456.7890" format from the drop-lists.

 

You can create different copies of this rule, changing the names to something like "Fax number formatted," "Office number formatted, "etc. Then in the Variable Text Editor, you can simply type in the labels "O:" et al, the insert the corresponding variable for the rule, one per line, then select everything and click the Paragraph button and select "Suppress if Containing Empty Variables."

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...