Pass parameter to new form
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)
- Dmitry Kozlov
- Site Admin
- Posts: 1524
- Joined: Thu Jun 07, 2012
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
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
- Dmitry Kozlov
- Site Admin
- Posts: 1524
- Joined: Thu Jun 07, 2012
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')
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')
-
- Information
-
Who is online
Users browsing this forum: No registered users and 11 guests