need to remove hard coded sys ids ?

Kiddy1
Tera Contributor

Developer Community harshtimes shloke04 explorenow

i need to remove the hard coded sysid value in my client script how to do it?

the script sets default assignment group i need to remove the hardcoded sysid value

function onLoad() {

//Type appropriate comment here, and begin script below

if(g_form.getValue('assignment_group') == '' && g_form.getValue('state') == 1 ){

g_form.setValue('assignment_group', "3a1fc5c5cd9d1100ef0e15a8c4f356");

}

}

6 REPLIES 6

Kiddy1
Tera Contributor

shloke04


thanks srivatsava,can you explain how glide ajax also can be used to remove sysids



thanks


The SN Nerd
Giga Sage
Giga Sage

You need to convert these to UI Policies.



http://wiki.servicenow.com/index.php?title=Creating_a_UI_Policy#gsc.tab=0



ServiceNow Nerd
ServiceNow Developer MVP 2020-2022
ServiceNow Community MVP 2019-2022