Link to home
Start Free TrialLog in
Avatar of DataBridge
DataBridgeFlag for United States of America

asked on

Auto Populate SharePoint Form Field from a query string

I am trying to get a Query String from the URL to automatically populate a <SharePoint:FormFiled> that is used to add a new item to a list.  This way when the user navigates to the page, they would not have to fill in that feild.
Avatar of Nasser Hamdan
Nasser Hamdan
Flag of United Arab Emirates image

As i understand you have a form that redirect or linked to another form,, and the the other sharepoint form should read the querystring and bind it ?

Solution as follows:

mySharePointPage.aspx?para1='test'&para2='test2'

and on your sharepoint page you should write custom asp.net code, to request these value on page load:

string myPar1 = Request.QueryString["test1"];
string myPar1 = Request.QueryString["test2"];

if you dont know how to write asp.net code in sharepoint form,, tell me ,, but its easy using sharepoint designer

Regards,




Avatar of DataBridge

ASKER

This site is on a shared server so I am unable to write any real code other than asp.net, and I am not great with asp.net in sharepoint.
ASKER CERTIFIED SOLUTION
Avatar of Nasser Hamdan
Nasser Hamdan
Flag of United Arab Emirates image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Well I appreciate you help anyway, thanks!