Field Type - Select multiple values
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2018 08:26 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-01-2020 06:56 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-01-2020 01:45 PM
It looks like it is actually using the question_choice table. That's what you used in your instructions and is the only way I was able to get it to work. What do your ACLs look like for that table?
I am only a catalog builder within my org, but they are telling me only 3 roles have read rights to that particular table.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-05-2020 04:57 AM
Yeah, you're absolutely correct, it is question_choice and not sys_choice... I'm not sure why I said that. My apologies.
Here is a screen shot of the ACL that's allowing us to read:
Here's the actual Script:
var a = {};
var gri = new GlideRecord('item_option_new');
gri.addEncodedQuery('active=true^list_table=question_choice^ORlookup_table=question_choice');
gri.query();
while (gri.next()) {
var ind = gri.reference_qual.indexOf('question=');
if (ind >= 0)
a[gri.reference_qual.substring(ind + 9, ind + 9 + 32)] = gri.name;
}
answer = false;
if (a[current.question.sys_id.toString()])
answer = true;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-05-2020 05:07 AM
Thanks for clarifying it as well. I found an article where someone was doing the same thing and described the ACL differences. https://www.covestic.com/servicenow-tips-making-list-collectors-useful/
Now I have to convince the ServiceNow admins at my business that this is useful without any real negative consequences.
Thanks for the helpful details again!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-05-2020 03:41 AM
Great! Thank you!
