How to call script include and pass a current field value to it?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-07-2022 04:35 PM
The script include is being called but I don't think my value is being passed to it correctly. Does the below look correct for calling a script include via a reference qualifier while passing a value to it?
javascript: new global.getUsersGroups().getGroups(current.assigned_to);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-07-2022 05:03 PM - edited 11-07-2022 11:40 PM
I would expect a colon only, not colon and semi colon which appears to be your example?
javascript: new global.getUsersGroups().getGroups(current.assigned_to);
Have you added logging to your script-include function to confirm it is called, and the parameter being passed to it is correct\expected?
Edit: I just noticed that my response ended up with exactly the same syntax as yours, so an issue with the community forums not your syntax.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-07-2022 05:30 PM
That looks fine. You can try adding .toString() after current.assigned_to and see if that makes a difference
.getGroups(current.assigned_to.toString())