GetUrlKeyValue('ID') returns undefined
-
- Posts: 20
- Joined: Wed Aug 24, 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.
?
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.
?
-
- Posts: 20
- Joined: Wed Aug 24, 2016
OK, it would appear that its case sensitive to the ID string in the URL. all sorted, thanks anyway.
-
- Information
-
Who is online
Users browsing this forum: No registered users and 3 guests