GetUrlKeyValue('ID') returns undefined

rss

Posted by Karlostavitch - Dec 19 ’16 at 02:21

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
    Member
    Member for: 3 years 3 months 13 days
    #1 by Karlostavitch Dec 19 ’16 at 04:57

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

Displaying 1 to 1 of 1 messages