On submit client script setting list collector variable value
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-01-2025 02:30 AM
Hi team,
In the catalog item, I have an MRVS variable set that includes a variable called engagement partner. Outside of this set, there is another variable of type list collector. After submitting the item, I am able to print the engagement partner from the MRVS, but I am unable to set the value for the outside variable.
script
=====
advance thanks team

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-01-2025 10:39 AM
Hi @Arun Kumar N ,
is your list collector variable referencing "sys_user" table?? , are you getting the right sys_id in here "engagement_partners_sys_id"??
can you try this during on change of the MRVS variable once?
Thank you,
Hemanth
Certified Technical Architect (CTA), ServiceNow MVP 2024, 2025
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-02-2025 11:03 AM
Hi @Arun Kumar N,
I faced a similar issue before it was resolved by adding the glide_list attribute to the list collector variable. After that, you can set values using g_form.setValue('variable_name', 'sys_id1,sys_id2,...').
Let me know if you need further help in this.
----------------------------------------------------------------------------------------------------------------------------------------
Please mark my response helpful and accept as solution
Thanks & regards
Mayank
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-07-2025 04:37 AM
Hi @Arun Kumar N,
If your query has been resolved, please mark my response as helpful and accept as solution or in case you need further help do let me know
Thanks & Regards
Mayank