Jump to content

Suppress if External Data Field is Empty

Recommended Posts

I have an external data field to pull addresses and phone numbers. We don't have fax numbers for every location.

Is there a way to suppress the line if the fax number is blank in the external data field?

Here is the code I am using:

returnStr = '';

if(FusionPro.Composition.isPreview == true || FusionPro.inValidation == true)

numRecsExtDF = externalDF.recordCount;

for (recordWalker=1; recordWalker <= numRecsExtDF; recordWalker++)
    if (TaggedTextFromRaw(externalDF.GetFieldValue(recordWalker, 'Facility')) == UntaggedDataField("Facility"))
        returnStr += "F:"+externalDF.GetFieldValue(recordWalker, 'Fax Label');
        returnStr += " "+externalDF.GetFieldValue(recordWalker, 'Fax');

return returnStr;

"Suppress if Empty" in the text box doesn't work here because there is text (The "F:"). So I need to suppress the "F:" if there is no fax number in the external data field.


Thank you.

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...