Go Back   MarcomCentral (PTI) and FusionPro User Communities > Software-Related Talk > The JavaScript Library

Notices

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old January 21st, 2014, 04:55 PM
Marc Marc is offline
Forum n00b
 
Join Date: May 2013
Location: Calgary, AB
Posts: 5
Default Right aligned text with an Extension Number

Hi
I am looking for a rule that gets rid of a white space on right aligned text.
Example:
Phone: 403.123.4567 ext 123 works fine if the ext field is populated, however if ext field is blank it returns a white space at the end of Phone: 403.123.4567
and does not line up with other phone #'s below it. I need to trim the white space on the right side if there is no extension number.

Thank You
__________________
Marc
FusionPro VDP Creator 9.0.3 | MacOS 10.7.5 | Acrobat 10
Reply With Quote
  #2  
Old January 22nd, 2014, 08:22 AM
jwhittaker jwhittaker is offline
Senior Contributor
 
Join Date: Feb 2009
Location: San Diego
Posts: 169
Default Re: Right aligned text with an Extension Number

Marc
When I use extensions I have a separate field for just the extension. I write a rule returning the spaces and the label. Something like this. I know it's not the most efficient but it gets the job done.

if (Field("ext") != "")
return " ext " + Field("ext");
else
return "";
__________________
FusionPro VDP Creator 10.0.26 | MacOS 10.13.4 | Acrobat DC
Reply With Quote
  #3  
Old January 22nd, 2014, 03:13 PM
Marc Marc is offline
Forum n00b
 
Join Date: May 2013
Location: Calgary, AB
Posts: 5
Default Re: Right aligned text with an Extension Number

Hi jwhittaker

Worked like a charm.
Thank You
Marc
__________________
Marc
FusionPro VDP Creator 9.0.3 | MacOS 10.7.5 | Acrobat 10
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 11:50 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2022, Jelsoft Enterprises Ltd.
(c) 2011, PTI Marketing Technologies™, Inc.