How to access forms on SharePoint lists

No.of Views968
Bookmarked0 times
Downloads 
Votes1
By  Dhananjay Kumar   On  12 Apr 2010 11:04:36
Tag : SharePoint , Design and Customization
This article will give a very high level description on various forms on a SharePoint list.
emailbookmarkadd commentsprint

Images in this article missing? We recently lost them in a site migration. We're working to restore these as you read this. Should you need an image in an emergency, please contact us at info@codegain.com

 

Objective

This article will give a very high level description on various forms on a SharePoint list.

When we create a new custom list in SharePoint, SharePoint creates three forms (*.aspx) for the custom list.  In fact for all list these forms are provided by SharePoint. 

 

Image Loading

 

Image Loading

Let us say, there is a list called TestList in your SharePoint site. Columns of list are as follows;

 

Image Loading

Adding New Item

Now when you add new item in the list, NewForm.aspx will get open.  You can see the below URL in your browser while adding new item in the list.


http://ABCSERVER:9722/sites/Test4/Lists/TestList/NewForm.aspx?RootFolder=%2Fsites%2FTest1%2FTest4%2FLists%2FTestList&Source=http%3A%2F%2Fc849uss%3A9722%2Fsites%2FTest1%2FTest4%2FLists%2FTestList%2FAllItems%2Easpx
 

There are two query parameters,
1.    RootFolder: This parameter defines, in which folder Item will get saved.
2.    Source:  This parameter defines after completion of action where to navigate.
 

Note: More on these two parameters in next articles.  

Image Loading

Editing Existing Item

Now when you edit existing item in the list, EditForm.aspx will get open.  You can see the below URL in your browser while editing existing item in the list.


http://ABCSERVER:9722/sites/Test1/Lists/TestList/EditForm.aspx?ID=3&Source=http%3A%2F%2Fc849uss%3A9722%2Fsites%2FTest1%2FTest4%2FLists%2FTestList%2FAllItems%2Easpx

There are two query parameters,
1.    ID: This parameter takes id of the item in list to be edited.  If you pass ID which does not exist in the list, SharePoint will throw you below error.
  

Image Loading

2.Source:  This parameter defines after completion of action where to navigate. 

 

Image Loading

Displaying Existing Item

Now when you display existing item in the list, DispForm.aspx will get open.  You can see the below URL in your browser while editing existing item in the list.

http://ABCSERVER:9722/sites/Test1/Lists/TestList/DispForm.aspx?ID=3&Source=http%3A%2F%2Fc849uss%3A9722%2Fsites%2FTest1%2FTest4%2FLists%2FTestList%2FAllItems%2Easpx&RootFolder=%2Fsites%2FTest1%2FTest4%2FLists%2FTestList

There are two query parameters,
1.    ID: This parameter takes id of the item in list to be displayed. 
2.    Source:  This parameter defines after completion of action where to navigate. 

Image Loading

Thank you and enjoy.

 
Sign Up to vote for this article
 
About Author
 
Dhananjay Kumar
Occupation-Software Engineer
Company-Infosys Technolgies,Pune
Member Type-Gold
Location-India
Joined date-20 Jul 2009
Home Page-http://dhananjaykumar.net/
Blog Page-http://dhananjaykumar.net/
Dhananjay Kumar is Microsoft MVP on connected system. He blogs at http://dhananjaykumar.net/ . You can follow him http://twitter.com/debugmode_/ and reach him at dhananjay.25july@gmail.com
 
 
Other popularSectionarticles
Comments
There is no comments for this articles.
Leave a Reply
Title:
Display Name:
Email:
(not display in page for the security purphase)
Website:
Message:
Please refresh your screen using Ctrl+F5
If you can't read this number refresh your screen
Please input the anti-spam code that you can read in the image.
^ Scroll to Top