Jump to content
Welcome to the new FusionPro User Forum! ×

Help with rule calling background template

Recommended Posts

Hi all,

I need a little help tweaking a javascript rule I'm using. I have a 188 page document using a pdf background. The users select which pages they want to print and the rule calls the correct background page. Here's the rule:

var t,i;

var retstring = "";

var y = Resource("Backgrounds");

for (i=1;i<=189;i++)


if(ToTitleCase(Field(FormatNumber("000", i)+"Item"))=="Yes")


t = new FPRepeatableComponent("T1");



t.AddTextVar("Price", Field(FormatNumber("000", i)+"Price"), false);

retstring += t;



return retstring;


What I'm trying to do now is add an additional option so the user can make one selection (PRINT ALL) and have all pages print. Any advise on how to tweak the above rule to include this option or creating a new rule would be awesome. Thanks in advance.


Link to comment
Share on other sites

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.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...