Jump to content

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...