Binding current item ID to subforms doesn't work
- Nikita Kurguzov
- Posts: 889
- Joined: Mon Jul 03, 2017
On the surface, everything looks correct. Try adding alert or console.log to your code to see if the value is getting retrieved correctly:
Also, make sure that Participant field looks up ID field in the Source list
Code: Select all
var parentId = window.top.GetUrlKeyValue('ID');
alert(parentId);
Cheers
- Nikita Kurguzov
- Posts: 889
- Joined: Mon Jul 03, 2017
Chris, if you still experience this trouble, I think we might've found what was going wrong. Simply replace this:
with this:
It caused issues if the Parent field was not referring to the ID of the parent. We've also updated the instruction.
Code: Select all
var parentId = window.top.GetUrlKeyValue('ID');
Code: Select all
var parentId = parseInt(window.top.GetUrlKeyValue('ID'));
Cheers
-
- Information
-
Who is online
Users browsing this forum: No registered users and 3 guests