URL parameters

rss

Posted by marcwenger - Jan 28 ’14 at 02:31

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

  • Dmitry Kozlov
    Dmitry Kozlov
    Admin
    Member for: 6 years 4 months 8 days
    #1 by Dmitry Kozlov Jan 29 ’14 at 04:01

    Hello,

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

    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:

    var sourceUrl = GetUrlKeyValue('Source');
    fd.getUrlParam(sourceUrl, 'ParamName');
    
Displaying 1 to 1 of 1 messages