Page 1 of 1
URL parameters
Posted: 28 Jan 2014
by marcwenger
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
Re: URL parameters
Posted: 29 Jan 2014
by Dmitry Kozlov
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');