Jump to content

suppress insert picture rule?


snaggs

Recommended Posts

Is there a way to suppress a graphic resource when using the insert picture rule?

 

I have a graphic resource (t) that i want to suppress when the phone number has been suppressed...

 

Any insite as to how to do this the least complicated way would be appreciated as I am a giant noob with FP and JS!!

 

Thanks,

Screenshot2011-12-15at10_35_57AM.png.49af776221b73bda217dd5d1181640f4.png

Link to comment
Share on other sites

Paste this into the OnRecordStart Rule:

 

if (Field("Phone#") == ""){
   FindGraphicFrame("T").suppress = true;
}
else {
   FindGraphicFrame("T").suppress = false;
}

 

I made a couple of assumptions with my code:

1: Your graphic resource is a graphic frame named "T"

2: Your phone number field is named "Phone#" and is suppressed when it contains nothing.

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.

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