Marc Posted January 21, 2014 Share Posted January 21, 2014 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 Quote Link to comment Share on other sites More sharing options...
jwhittaker Posted January 22, 2014 Share Posted January 22, 2014 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 ""; Quote Link to comment Share on other sites More sharing options...
Marc Posted January 22, 2014 Author Share Posted January 22, 2014 Hi jwhittaker Worked like a charm. Thank You Marc Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.