How to call script include and pass a current field value to it?

e_wilber
Tera Guru

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);

2 REPLIES 2

Tony Chatfield1
Kilo Patron

 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. 

 

Mike_R
Kilo Patron
Kilo Patron

That looks fine. You can try adding .toString() after current.assigned_to and see if that makes a difference

.getGroups(current.assigned_to.toString())