Fletch Posted March 12, 2010 Share Posted March 12, 2010 I'm setting up a Business Card template. I have fields for first name, last name and credentials on the same line. Not all cards will have credentials, so the ones that do I need to have a comma following the last name. How can I make the comma NOT print when the credentials field is empty? I tried the 'Supress' function, but you can't have different 'Suppress' values on the same text line. WHen I tell it to I'm stumped. Link to comment Share on other sites More sharing options...
esmith Posted March 12, 2010 Share Posted March 12, 2010 You need a JS rule to return the comma with the credentials field unless it is empty: return (Field("Credentials") != "") ? ", " + Field("Credentials") : ""; Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.