GetUrlKeyValue('ID') returns undefined

Discussions about Forms Designer for SharePoint 2013 / 2016 and Office 365.
Locked
Karlostavitch
Posts: 20
Joined: Wed Aug 24, 2016

19 Dec 2016

I am setting up a new form set with its own related items view. Now I am trying to prepopulate the parent item field in the quick edit spreadsheet and it is not working, even using exactly the same code as what is working on other forms.

I am trying to assign it by

fd.populateFieldsInGrid($('.related-Works'), {

parentItem: GetUrlKeyValue('ID'),

});



but when I try console.log(GetUrlKeyValue('ID')); in the developer tools console, it is returning undefined.

?

Karlostavitch
Posts: 20
Joined: Wed Aug 24, 2016

19 Dec 2016

OK, it would appear that its case sensitive to the ID string in the URL. all sorted, thanks anyway.

Locked
  • Information
  • Who is online

    Users browsing this forum: No registered users and 3 guests