Jump to content

Suppression of a Field?


Recommended Posts

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?



Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...