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

Help with on record start


Recommended Posts

I'm trying to make a 4 page flyer so that the user can pick what pages they would like to have printed, instead of all 4 pages.

 

I have a on record start rule that says if "1" is picked then the first story will come up and so on all the way to 4.

 

if (Field("Stories") == "1")
{
FusionPro.Composition.SetBodyPageUsage("1", true);
}

if (Field("Stories") == "2")
{
FusionPro.Composition.SetBodyPageUsage("2", true);
}

if (Field("Stories") == "3")
{
FusionPro.Composition.SetBodyPageUsage("3", true);
}

if (Field("Stories") == "4")
{
FusionPro.Composition.SetBodyPageUsage("4", true);
}

What I'm having trouble figuring it out is how to make it so the user can pick any 1, 2, or 3 stories they want, that it doesn't just go in order 1-4. I wasn't sure if a rule needed to be made or if something in Marcom needs to be set up.

 

Any help is much appreciated.

Link to comment
Share on other sites

Exactly, I did do 4 separate fields...but how do I get those fields to correspond to the page numbers?

 

I have Story1 for instance and if that were picked I would need page 1 to come up.

 

When I tried doing that in on record start though it wouldn't work...

Link to comment
Share on other sites

Exactly, I did do 4 separate fields...but how do I get those fields to correspond to the page numbers?

 

I have Story1 for instance and if that were picked I would need page 1 to come up.

Okay, so what is the value in that field which indicates that Story 1 should be activated? If it's "1", then you want to do this:

FusionPro.Composition.SetBodyPageUsage("1", Field("Story1") == "1"));
FusionPro.Composition.SetBodyPageUsage("2", Field("Story2") == "1"));
FusionPro.Composition.SetBodyPageUsage("3", Field("Story3") == "1"));
FusionPro.Composition.SetBodyPageUsage("4", Field("Story4") == "1"));

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.

Guest
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...