URL parameters

Discussions about Forms Designer for SharePoint 2010.
Locked
marcwenger
Posts: 17
Joined: Tue Dec 17, 2013

28 Jan 2014

Hello - are the functions getUrlParam and setUrlParam for use only with subforms, or can it be used to grab information from the SharePoint page that is calling the form? I can't seems to read the URL that called the form. Thanks,

-m

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

29 Jan 2014

Hello,

If you open your form in a dialog, you can get params of the parent page by the following code:

Code: Select all

fd.getUrlParam(window.top.location.href, 'ParamName')
If form is opened in main window, you can use Source parameter which contains URL of the page from which the current form has been opened:

Code: Select all

var sourceUrl = GetUrlKeyValue('Source');
fd.getUrlParam(sourceUrl, 'ParamName');

Locked
  • Information
  • Who is online

    Users browsing this forum: No registered users and 16 guests