URL parameters
-
- Posts: 17
- Joined: Tue Dec 17, 2013
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
-m
- Dmitry Kozlov
- Site Admin
- Posts: 1524
- Joined: Thu Jun 07, 2012
Hello,
If you open your form in a dialog, you can get params of the parent page by the following code:
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:
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')
Code: Select all
var sourceUrl = GetUrlKeyValue('Source');
fd.getUrlParam(sourceUrl, 'ParamName');
-
- Information
-
Who is online
Users browsing this forum: No registered users and 7 guests