The parent.style.visibility solution does not work either.
I have also found a challenge hiding a listbox. If I set visibility to hidden it hides the textbox but does not hide the icon with the drop down arrow.
Any ideas?
Try this. I was able to hide the button in 9.0 using this method: function FORM_OnAfterFrameworkInit() { var objButton = lawForm.getFormElement("push2"); if (objButton) { objButton.value=""; } } function FORM_OnAfterTransaction(data) { var objButton = lawForm.getFormElement("push2"); if (objButton) { if( // test for show-no-show condition here ) { objButton.value="ShowTheButton"; } else { objButton.value=""; } } } The properties: value="" will hide the entire button, visibility="hidden" will gray-out the button, but no text shows.