Tuesday, July 20, 2010

Hiding field in SharePoint through JavaScript !

Hi All,

Many times we require to hide specific field in new form, disp form and edit form. This time we will do it with the help of javascript. We can do the same thing with the help of SharePoint API. However we will cover here that how to achieve the same with the help of JavaScript.

Let us go to calendar and click on new. You will now be on Newform.aspx. We can see here one field named “WorkSpace”. If we don’t want user to create any workspace here, then we can hide this field with the help of JavaScript code.

To hide a specific field, insert one content editor web part on the page and then just copy and paste the following code. Insert this web part below the new form web part.

No comments:

Post a Comment

About Me

A SharePoint Developer,I have worked for several consulting companies, and developed several SharePoint solutions. I have been awarded Application Development MCTS in MOSS from Microsoft on the May 2009.
And also I am a MS CRM Developer.
Please visit my MS CRM Blog
http://srikanthcrm.wordpress.com