Avatar

Not applicable

Starting to give up hope. I tried what you said and it also partly works.

I put the Orderform.Document.Footer on default precense hidden.

Initialize event of a subForm on the MasterPages itself executes the following code:

if ($record.CommonMetaData.Environment == "PROD") then

     Orderform.Document.Footer.presence = "visible"

endif

This works, yet it makes all my other scripts fail, it claims that $record.CommonMetaData.Environment is invalid, yet it does not complain one bit if I write $.presence = "hidden" instead of referring to the object in the "layout".

I find it hard to believe that I can't hide a page and even more strange that a masterPage does not have the attribute "presence", this would have made my battle vs Designer much, much easier.