SharePoint 2010 Passing Parameter Values into ListItem forms

SharePoint Designer offers great functionality to SharePoint and customizing the list item forms. You are able to pass parameters by query string to a new, edit or display form in order to set default values or do some other stuff. So if you want to provide a link or generate it automatically the form could use the value to save it into the list. But you have to configure the list form.

1) Create a custom form for the list – in this example we create a custom new item form aspx page

Insert a name:

The result is:

2) Delete the current Dataformview Webpart.

3) Add a new custom list form

4) Add your Parameter

5) Use the Parameter

At this place you have to change the SPFormField to an aspx textbox.

After that you can set the text attribut and prefill it with the parameter from query string by just insert {$yourparameterName}

6) Open the form in Browser

That’s it.

..:: I like SharePoint ::..

The article or information provided here represents completely my own personal view & thought. It is recommended to test the content or scripts of the site in the lab, before making use in the production environment & use it completely at your own risk. The articles, scripts, suggestions or tricks published on the site are provided AS-IS with no warranties or guarantees and confers no rights.

Karsten Pohnke About Karsten Pohnke
He is Consultant for SharePoint Solutions for collaboration, communication and business processes. He provides his customers applications based on standard features as well as development or combining the power of several microsoft tools like Dynamics CRM. In his free time he tries to collect tipps and worthy experience in this blog.