- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-22-2024 03:41 PM
Hi,
Is there a way to set the sys id returned from script include in the reference qualifier for a reference variable?
I have a reference variable that refers to sys_user_group table. I'm calling a script include from the reference qualifier of this field as below.
javascript: new XXXutils().getGroups(current.variables.a,current.variables.b,current.variables.c);
The value returned from this is populated in the reference field dropdown, but not set in the field automatically.
I know this could be achieved by a client script, but just checking if there is a way in the reference qualifier itself to set the value in the variable to display it without selecting from the dropdown.
Thanks
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-22-2024 05:02 PM - edited 02-22-2024 05:04 PM
Hi @janindiadoc_1 Reference Qualifiers are used to filter out data and they will not set to field automatically, it will just show under drop down, if you need to set it on field then use Client callable script include and onChange client script to set it on the field.
Harish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-24-2024 11:20 AM
Hi @janindiadoc_1 ,
Could you please try with default value where we can write JavaScript code, try to add ajax call in default value field.