Ryan_B Posted May 21, 2015 Share Posted May 21, 2015 Is there a way to remove a text frame if another text frame is empty? I'm creating a table of contents. Under each section (chapter) I have a text frame that will be removed if that section of the book is not chosen. Quote Link to comment Share on other sites More sharing options...
Dan Korn Posted May 21, 2015 Share Posted May 21, 2015 I think the simplest thing is to just have the frame that you want to "remove" call out a rule, and if you don't want anything in the frame, just have the rule return nothing. Or, you can name the frame, and then in OnRecordStart, you can do this to suppress it: FindTextFrame("YourFrameName").suppress= true; You could do this conditionally, based on whatever condition you want, e.g.: if (!Field("Section")) FindTextFrame("YourFrameName").suppress= true; or: FindTextFrame("YourFrameName").suppress= !Field("Section"); Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.