.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Sandeep Singh

Home >> Articles >> SharePoint >> Post New Resource Bookmark and Share   

 Subscribe to Articles

How to hide the Content Type in edit form

Posted By:Sagar Pardeshi       Posted Date: December 24, 2013    Points: 200    Category: SharePoint    URL: http://www.dotnetspark.com  

use Jquery to hide the content type field in Editform


The Article about hiding fields in the Editform, SharePoint and how you can use Jquery to hide the content type field in Editform 

So, click on "Add a Web Part" so that we can add a "Content Editor" web part to the form. This is where our javascript code




Contrary to the other fields, we have no NOBR tag here. We do have a form label and a select field.
So instead of referencing to a field, we will reference to the id of the select field. That id contains a big id number, but also the text "ContentTypeChoice".

Add code in Content Editor


<script language="javascript" src=" /JSLibrary/jquery-1.9.0.min.js" type="text/javascript"></script>
<script language="javascript" type="text/javascript">

 Subscribe to Articles


Further Readings:


No response found. Be the first to respond this post

Post Comment

You must Sign In To post reply
Find More Articles on C#, ASP.Net, Vb.Net, SQL Server and more Here

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend