re: Container that will not stay closed
This is very strange. I have a container, use it in multiple DCTs (7). I want to start it collapsed. Easy enough. A bit of FormApi. On 6 of the 7 DCTs, a DCR opens with the container collapsed. What is different ?
This is the contaner def:
<container location="MetaData_Lists" name="MetaDataList" default="1" min="1" max="1" combination="and">
<label>Personalization MetaData</label>
This is the javascript I added:
<script>
CDATA Hidden
function init() {
var container = IWDatacapture.getItem("/Root/MetaDataList");
container.setCollapsed(true);
alert("final Done");
}
//Now do the initialization...
IWEventRegistry.addFormHandler("onFormInit", init);
End CDATA
</script>
With this code, the container starts closed. I see the alert, then it magically opens. There is no other formApi in the DCT.
My plan is to start removing items just for grins. Will see if that changes. Otherwise I will start drinking. Might even start eating raw fish. OK, it is not that bad.
Andy