dreimer Posted January 6, 2016 Share Posted January 6, 2016 Is there a way to edit the rule so that I don't get a warning if the field in the data is blank. I still want the warning if the copy won't fit in the text box, just not when the field is blank. if (!Copyfit(new MagnifyAttributes("text", 25, 400, 6, 72))) ReportWarning("Could not copyfit text in flow " + FusionPro.Composition.CurrentFlow.name); Quote Link to comment Share on other sites More sharing options...
step Posted January 6, 2016 Share Posted January 6, 2016 Did you see this thread? More specifically: this post. If that solution doesn't work for you, I suppose you could try: var cf = FusionPro.Composition.CurrentFlow; var fit = cf.fits && !cf.expandToFill; if (!fit) fit = +!RawTextFromTagged(cf.content.replace(/<variable name="([^"]*)">/g, function(s,p){return RuleOrField(p);})); if (!fit && !Copyfit(new MagnifyAttributes("text", 25, 400, 6, 72))) ReportWarning("Could not copyfit text in flow " + FusionPro.Composition.CurrentFlow.name); Quote Link to comment Share on other sites More sharing options...
dreimer Posted January 6, 2016 Author Share Posted January 6, 2016 Dan's code did not work just like the original poster mentioned. I used your code and it appears to work. Thanks 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.