dianakob2 Posted February 22, 2013 Share Posted February 22, 2013 I'm using FP 6.1. I have 2 fields side by side on the same line. The word(s) "Claim #:" is hardcoded and the actual # imports from a database. Next to it I have "Acct #:" hardcoded and it's number imports from the same database. My questions is: When there is no data in "Acct #:", how do I make it not print? Can I even do it with it being hardcoded and not database? Thanks! Quote Link to comment Share on other sites More sharing options...
esmith Posted February 22, 2013 Share Posted February 22, 2013 One option would be to create a rule that handles all the text in the field: var account = Field("ACCOUNT"); var claim = Field("CLAIM"); var result = ''; if (claim != '') result += 'Claim #: ' + claim + ' '; if (account != '') result += 'Acct #: ' + account; return result; If you need the account number to stay in a specific position, you may have to add tab tags to the code and check the tagged text box in the rule. 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.