Real SharePoint Code

Open your site in SharePoint Designer.
Browse to your list and open the ‘NewForm.aspx’ web form.
Go File -> Save As… and give the form a new name such as ‘NewForm2.aspx’.
Hide the default List Form Web Part from the page (do not delete it!!).
Right click the List Form Web Part -> Web Part Properties -> expand Layout -> check Hidden.
Go Insert > SharePoint Controls -> Custom List Form.
In the List or Document Library Form dialog, select the appropriate list, content type and type of form.
Click OK and a new Data Form Web Part is added with controls representing all the fields from the list (in my environment all the controls show “Error Rendering Control” but this does not affect the final result).
In the newly added Data Form Web Part, delete the rows containing fields not to be shown to the user (ensure that fields being removed are not required fields without default values as this would prevent the user from submitting the form).
At this point, you can do other customisation such as rearranging the fields if you wish.
Save the site.
To make the new form the default form:

1. Open the site in SharePoint Designer.
2. Right click the list in the Folder List and select Properties.
3. Go to the Supporting Files tab.
4. Use the Browse button to enter the path to your new Edit item form.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: