Jump to content
Welcome to the new FusionPro User Forum! ×

Text Variable to suppress when Graphic Variable is empty

Recommended Posts

I have different variable Graphics boxes in different locations on my PDF. Every spot on the sheet has a Variable Text box for the (Customer ID#) When the Graphic Field is blank no Graphic shows (This is correct) but I have a Variable text box there also for the (Customer ID#) So I have a Blank ticket with a number on it. I need that Variable text box (Customer ID#) to print only when the Graphic Field has an image in it.





.:)00011 or 00011.


I need the number not to print if there is no image coming in.




Link to comment
Share on other sites

You can make a rule which simply returns nothing (an empty string) if the graphic is missing, and otherwise returns the field value, and use that in your text frame. I don't know the names of your fields, but something like this:

if (!Field("YourGraphicField"))
    return "";
return Field("Customer ID#");

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