- Mark as New
- Follow
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report
Hey,
We're closing in on a success here!
I was able to manage and hide this page as you mentioned however it appears that my script partly does not work.
> Orderform
>> PageSet
>>> LastPage
>>>> subform
>>>>> script:
if ($record.CommonMetadata.Environment == "PROD") then
$.presence = "hidden"; // WORKS
Orderform.Document.Footer.presence = "hidden"; // DOES NOT WORK
endif
I also tried scripting the initialze of the footer itself:
if ($record.CommonMetadata.Environment == "PROD") then
$.presence = "hidden"; // DOES NOT WORK
endif;
However, if i set Orderform.Document.Footer (=subform) to visibility "hidden" the last page is not generated as expected. This is great, however then I do not have the ability to make it visible again ![]()
I feel that we are very close to a working solution, the only problem is to make the footer "visible" through scripting.
Here is the structure of the Hierarchy, I tried scripting in the regions indicated with '*' and i copy pasted the if-structure from above, aka formcalc.:
Orderform
PageSet
FirstPage
Elements 0..n *
NextPages
Elements 0..n
LastPage
Elements 0..n *
Document *
Header
Elements 0..n
Details
Elements 0..n
Footer *
Elements 0..n *
(variables none)
I might also have to mention that I CAN access XML data using formCalc but i CANNOT do this using JavaScript ?!
Almost there, thanks already!
Views
Replies
Total Likes