Linker caller to a choice field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
â01-14-2024 09:38 PM
Hello,
I want to link a one caller/user to a choice field. Ex. Bill hill = User, TeamDesk = (Helpdesk Team - Choice field). If bill selected on the caller will automatically Helpdesk Team will populated.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
â01-14-2024 10:36 PM
Hello @Ankur Bawiskar
This is for one caller only
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
â01-14-2024 10:41 PM
then you can use onChange client script and check who is the caller and based on that populate or clear the choice
what script did you start with and where are you stuck?
Ankur
⨠Certified Technical Architect || ⨠9x ServiceNow MVP || ⨠ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
â01-14-2024 10:45 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
â01-14-2024 10:52 PM
Hi,
On your line no 8 you just need to use:
if(caller == 'sys_id of user'){
// if true logic goes here
}
Thanks
Anil Lande
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
â01-14-2024 10:55 PM
Hi @Neil_Carlo24 ,
Try below logic,
if(caller == 'sys_id_of user'){\\enter sys id of the user
g_form.addOptions('u_helpdesk_team','SSC','SSC');
}else{
g_form.removeOptions('u_helpdesk_team','SSC','SSC');
}
Thanks,
Danish