Pass parameter to new form

Discussions about Forms Designer for SharePoint 2013 / 2016 and Office 365.
Locked
stieland
Posts: 17
Joined: Thu Jun 13, 2013

08 Aug 2014

I have a request list and form that is working fine. What I want to do is on the home page of my site, use the promoted links webpart (or really any UI that shows images with links behind them) and when they click the image the new form for my request list shows up, but I want to preselect the request type (based on what image was clicked)

User avatar
Dmitry Kozlov
Site Admin
Posts: 1524
Joined: Thu Jun 07, 2012

10 Aug 2014

Hello,

You can wrap each image into <a href="New form URL"></a> tag and define an individual URL with a custom parameter for each link e.g.

/Lists/ListName/fd_Item_New.aspx?image=5

stieland
Posts: 17
Joined: Thu Jun 13, 2013

11 Aug 2014

And how do I get that querystring on the new form? Does it change if it is opened as a popup versus the full page (and can I tell)?

User avatar
Dmitry Kozlov
Site Admin
Posts: 1524
Joined: Thu Jun 07, 2012

12 Aug 2014

Hello,

You can get an additional parameter via JavaScript in a full page mode as well as in a dialog following way:

GetUrlKeyValue('name of a query param')

Locked
  • Information
  • Who is online

    Users browsing this forum: No registered users and 16 guests