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.



About Karsten Schneider 306 Articles
Consultant for Microsoft 365 Applications with a strong focus in Teams, SharePoint Online, OneDrive for Business as well as PowerPlatform with PowerApps, Flow and PowerBI. I provide Workshops for Governance & Security in Office 365 and Development of Solutions in the area of Collaboration and Teamwork based on Microsoft 365 and Azure Cloud Solutions. In his free time he tries to collect tipps and worthy experience in this blog.