- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-24-2018 04:22 PM
There is a drop down on the catalog form woth two values ( A , B)
if A is selected , some of the fields on the form should be populated . We have some list collectors on the form ,that need to be populated with more than one value ; how can I achieve this.
And even if one value neeeds to be added , this code doesn't work: ( the type of salesforce_role is a list collector)
g_form.setValue('salesforce_role', 'Client Services');
and there are some checkboxes on the form that need to be checked if A id selected.
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-24-2018 04:24 PM
Please mark this response as correct or helpful if it assisted you with your question.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-24-2018 04:24 PM
Please mark this response as correct or helpful if it assisted you with your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-24-2018 04:32 PM
actually it didn't work; how about checkbox ;
g_form.setDisplay('access_hindsight',true);
this is not working

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-24-2018 08:15 PM
For Checkbox use
g_form.setValue('access_hindsight','true');
For List collector, which version of servicenow are you on? There seems to be a known error. You can convert it to glide_list and try, if that works.
https://hi.service-now.com/kb_view.do?sysparm_article=KB0622779
Please mark this response as correct or helpful if it assisted you with your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-24-2018 06:12 PM