Page 1 of 1

GetUrlKeyValue('ID') returns undefined

Posted: 19 Dec 2016
by Karlostavitch
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.

?

Re: GetUrlKeyValue('ID') returns undefined

Posted: 19 Dec 2016
by Karlostavitch
OK, it would appear that its case sensitive to the ID string in the URL. all sorted, thanks anyway.