TS 6.7.1 Win 2000 SP4Greetings!I ahev attached the formAPI code and the datacapture code. The field does not seem to appear eventhough the isVisible seems to be true. 1. First I make the fields disappear using setVisible(false). The fields disappear.2. The I try to make the fields visible by turining the setVisible true. The fields do not appear. I try to do a isVisisble on the field. The reuslt thrown is "true". This seems to be funny. I even do a redraw(). Does not work.But the code perfectly works fine if I make them appear fist and then disppear which is the above steps in reverse order.Please help.
<SCRIPT>init();function init(){alert("Inside Init"); showPreviewSection(IWDatacapture.getItem("/previewAndProduction"));IWEventRegistry.addItemHandler("/previewAndProduction", "onItemChange",showPreviewSection); }function showPreviewSection(item){alert(item);var previewSectionEnabled = item.getOptions()[item.getValue()].value;alert(previewSectionEnabled);if (previewSectionEnabled == "p"){IWDatacapture.getItem("/previewNodeName").setVisible(true);IWDatacapture.getItem("/previewDestinationPath").setVisible(true);}else{IWDatacapture.getItem("/previewNodeName").setVisible(false);IWDatacapture.getItem("/previewDestinationPath").setVisible(false);}}</SCRIPT>