BuffaloPrintingCo Posted July 9, 2012 Share Posted July 9, 2012 Using FP v7. I have a line as follows on a business card: Email: jsmith@mail.com http://www.mail.com I need the label "Email:" to dissappear if there is no email entered. I know how to do it if the label and the following text are the same font weight/type/etc, but in this case, the label is a different font from the text that follows. Any tips on how I can do this? I couldn't find anything in the javascript code that would solve this Link to comment Share on other sites More sharing options...
ThomasLewis Posted July 9, 2012 Share Posted July 9, 2012 The span tag is handy for stuff like this. Check out the post here: http://forums.pti.com/showthread.php?p=1819 Here's an example of one way this could be done using the span tag: var emailline = ""; if (Field("Email").length > 0) emailline = '<span font="fontname1" bold="true">' + "Email: " + '</span><span font="fontname2" bold="false">' + Field("Email") + '</span>' + " "; return emailline + '<span font="fontname3">' + "www.mail.com" + '</span>'; Link to comment Share on other sites More sharing options...
BuffaloPrintingCo Posted July 9, 2012 Author Share Posted July 9, 2012 huge help! thanks for that quick response. I'm new to Java, but this seems very similar to span tags in HTML. The link you gave was helpful too. Thank you, Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.