- Mark as New
- Follow
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report
Good,
I think what is happening is that some of your script is in a master page object and and while is referring to itself, it is also referring to an object on the main pages.
If the data you are testing and the objects are on the main pages, I would put the script on the main page as well.
I would normally use JavaScript for this and would resolve the name, where it is referring to an object on the master page (Page 1 = master page; p1 = layout page):
var oReference = xfa.resolveNode("xfa.form.form1.#pageSet[0].Page1.logoImage");
if (form1.p1.group.rawValue == 1) {
oReference.rawValue = mainLogo.value.image.value;
}
Where you are using Formcalc I think that stick with the script in the LastPage.subform as you have it, just delete the semicolon and delete the line that is not working:
if ($record.CommonMetadata.Environment == "PROD") then
$.presence = "hidden" // delete the semicolon
endif
Next make some small changes to the Formcalc in the footer (which I presume is in the main pages)...
if ($record.CommonMetadata.Environment == "PROD") then
$.presence = "hidden" // delete the semicolon
endif // delete the semicolon
The additional semicolons may have been affecting the script. When testing press Control+J and see if any errors are showing up in the console.
Sorry I cannot be of more direct help,
N.
Views
Replies
Total Likes