snaggs Posted December 15, 2011 Share Posted December 15, 2011 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, Link to comment Share on other sites More sharing options...
step Posted December 15, 2011 Share Posted December 15, 2011 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 More sharing options...
snaggs Posted December 15, 2011 Author Share Posted December 15, 2011 Thanks Step..ill try it out and let you know how it goes!! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.