dreimer Posted January 2, 2014 Share Posted January 2, 2014 (edited) So I am trying to create a way to have a text box turn off and on based on the back graphic. I have the text working correctly with rules and using formatted text but how can I turn the border off for the records where that text box isn't used. Basically, I have an indicia that is in different locations for different backs. Hope that makes sense. TIA Or should I do this a different way and have two unused pages for my backs and use an OnRecordStart rule to pick the back that I want. I just don't know how to write that rule. For example my Graphic resources are named 1.pdf, 2.pdf, 3.pdf and so on through 10.pdf. I want backs 2.pdf and 3.pdf to have the same back page layout and 5.pdf, 6.pdf, 7.pdf 8.pdf, 9.df, 10.pdf to have the other back layout. My two different fronts are 1.pdf and 4.pdf, but I can easily set a graphic switch for those. So I am thinking maybe have a three page template. Any ideas? Edited January 2, 2014 by dreimer Quote Link to comment Share on other sites More sharing options...
dreimer Posted January 2, 2014 Author Share Posted January 2, 2014 Figured out a workaround, but if anyone has an idea on how to do the OnRecordStart rule I would like to see it for maybe future use. Thanks Quote Link to comment Share on other sites More sharing options...
Dan Korn Posted January 2, 2014 Share Posted January 2, 2014 Just name the frame and do something like this: if (<some condition>) FindTextFrame("YourFrameName").borderThickness = 0;Or: if (<some condition>) FindTextFrame("YourFrameName").suppress = true;Or: FindTextFrame("YourFrameName").suppress = !<some condition>; Quote Link to comment Share on other sites More sharing options...
jwhittaker Posted January 2, 2014 Share Posted January 2, 2014 dreimer This is what I use for the OnRecordStart rules I use. FusionPro.Composition.SetBodyPageUsage(Field("Ver"), true); You can use regular if-then statements to set the page to use or suppress. The Field("Ver") can be a field with the page to use or suppress but it can also be hard coded with the page name "back2" for example in an if-then statement if (location == "san diego") FusionPro.Composition.SetBodyPageUsage("backpage1", true); else FusionPro.Composition.SetBodyPageUsage("backpage2", true); Where both backpages are set to unused. Quote Link to comment Share on other sites More sharing options...
dreimer Posted January 2, 2014 Author Share Posted January 2, 2014 Thanks for the ideas. I will give them a shot. 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.