I am trying to execute 2 independent if statements in the OnRecordStart rule.
One is meant to manage a text box:
if (Field("FieldName") =="")
{
FindTextFrame("MyTextFrame").fillColorName = "white";
FindTextFrame("MyTextFrame").content = "<span color=white>" + FindTextFrame("MyTextFrame").content;
}
The other activates a page in the document:
if (Field("FieldName2") != "")
{
FusionPro.Composition.SetBodyPageUsage("OtherPage",true)
}
Can anyone explain how to keep these two statements independent of each other? I am unable to create 2 different OnRecordStart rules, so I am forced to place them in the same rule. I assume I can insert instructions to treat these statements on their own, but my searches for a solution have been fruitless so far.
Thank you for taking the time to look at this.