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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...