Tuesday, October 5, 2010

Sharepoint 12 - Javascript in sharepoint edit form(2)

Sometimes we may need to hidden a display field in edit form.

What I do is use getElementByID to get the node of specific node.

And for the form field, use parentNode.parentNode et al to get a specific TR node.

And use object.style.display="none" to hide the table row.