Remove a specific value from a glide_list field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2018 12:19 AM
Hello,
I have a glide_list field
from which, after pressing a button (UI Action), I want to remove a certain value.
How could I do?
Thanks ☺
- Labels:
-
Scoped App Development
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-19-2021 10:38 PM
Hi
I have a similar kind of requirement but the twist here is.
I'm working on knowledge form where I created restricted user field which is glist list so whatever group I add in this list the same information should get copied to Can read field.
Let's say I added knowledge A, Kknowledge B in restricted group and after saving form I realized it should only have knowledge A.
So can read field should have knowledge A at the end but it is having Knowledge A, Knowledge B,knowledge A.
Below the script which I'm using
var userList = current.getDisplayValue('u_restrict_user');
var splitUsers=userList.split(','); //Replace u_restrict_group with correct field name
for(var i=0;i<splitUsers.length;i++)
{
//gs.addInfoMessage("Hi:" + splitrestrictgroup);
current.can_read_user_criteria=current.can_read_user_criteria+','+splitUsers[i];
}
Can you guide me through this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-19-2021 10:47 PM
Can you please post a new thread for this as this question is quite older.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-19-2021 11:33 PM
Hi
I have done it. Let me give you the link
https://community.servicenow.com/community?id=community_question&sys_id=461e9000db21f0101cd8a345ca96194c
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-30-2018 07:11 AM
Hi,
Any update on this?
Can you mark my answer as correct, helpful if you were able to achieve the requirement. This helps in removing this question from unanswered list and helps users to learn from your thread. Thanks in advance.
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader