Gunnar Peipman's ASP.NET blog

ASP.NET, C#, SharePoint, SQL Server and general software development topics.

Sponsors

News

 
 
 
DZone MVB

Links

Social

SharePoint: Customizing DispForm.aspx and EditForm.aspx through browser

DispForm.aspx that displays detail view of list item and EditForm.aspx that displays edit view of list item are not customizable by default. You can move to these pages but there is no Edit option in Site Actions menu. But it still possible to customize these pages, add new web parts there and so on. All you need is your web browser.

 

NB! This blog is moved to gunnarpeipman.com

Click here to go to article

Comments

Rajesh said:

suppose there are 5 field in Task List. In Edit option I want to show only one field. Lets say only   Approve/Reject  checkbox.

How to hide the these fiedls in editform.aspx?

# February 18, 2011 4:55 AM

Ankit said:

I am also  looking for same kind of information as Rajesh is asking. Please let me know if you find any solution.

Thanks

# May 30, 2011 6:11 AM

Rajdeep said:

@Ankit,

To hide or do any kind of further customization you need to add a content editor webpart in the EditForm.aspx page and write javascript or Jquery to hide all the fields. For example to hide a field called Name write below,

$("input[title='Name']").parent().parent().parent().hide();

troubleshoot a bit with the number of parent tag you need if it doesn't work in forst shot.

Happy Scripting !

# June 20, 2011 2:36 AM