View Full Version : Adding static text before a field
rpaterick
July 7th, 2009, 03:55 PM
Trying to get Cell Phone before the field Cell Phone.
When it has value, it should look like Cell Phone XXX-XXX-XXXX
When no value, just blank.
Code I have now which is wrong.
if (Field("Cell Phone") == "") {
return "";
}
else return Field("Cell Phone") + "Cell Phone " ;
Thanks,:D
Ryan
ehazzard@printable.com
July 7th, 2009, 04:31 PM
Ryan,
If there is only one variable on the line you actually do not need a rule to manage this. Instead, open the frame in the variable text editor window, highlight the line 'Cell: xxx-xxx-xxxx', click the Paragraph button and select suppress 'if containing empty variable' option.
This should do the trick!
rpaterick
July 7th, 2009, 05:14 PM
Ryan,
If there is only one variable on the line you actually do not need a rule to manage this. Instead, open the frame in the variable text editor window, highlight the line 'Cell: xxx-xxx-xxxx', click the Paragraph button and select suppress 'if containing empty variable' option.
This should do the trick!
I think this will do! Thanks! I was thinking it had to be CODE.
vBulletin® v3.8.4, Copyright ©2000-2010, Jelsoft Enterprises Ltd.