Ok, below is an example of a rule i have:
if (FusionPro.inValidation)
Rule("OnJobStart");
if (Left(inputfile, 3) == "REM")
{
return "To confirm your reservation, get driving directions, or if you are unable to attend but would like more information, please call";
}
else if (Left(inputfile, 3) == "CON")
return "If you have questions or need driving directions, please call";
else
return "";
here is an example of my OnJobStart rule:
inputfile = FusionPro.Composition.inputFileName;
inputfile = ReplaceSubstring(inputfile, "/Users/VariableG5Pro/Desktop/Work Folder/", "");
if (FusionPro.Composition.isPreview)
{
//inputfile = "REM";
inputfile = "CON";
}
when i take out the IF statement in the OnJobStart rule and then preview the document, the paragraph isn't shown. But if i just compose the job the text is there. I would just like to know if there is a way to preview the document without having to go into the rule every time and Commenting/Uncommenting the lines in the IF statement?
Thanks,
Eric