Linker caller to a choice field

Neil_Carlo24
Tera Contributor

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.

18 REPLIES 18

Hello @Ankur Bawiskar 

This is for one caller only

@Neil_Carlo24 

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?

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Here's my script

Hi,

On your line no 8 you just need to use:

if(caller == 'sys_id of user'){

// if true logic goes here

}

Please appreciate the efforts of community contributors by marking appropriate response as correct answer and helpful, this may help other community users to follow correct solution in future.
Thanks
Anil Lande

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