how to set a default value on a dropdown?

manmathpanda
Giga Guru

Hi Developers,

Need your help here. Actually there is a task to make a dropdown value none which now showing phone(source field). I checked it by going to source field- configure dictionary- choice list specification - value ---> in value field nothing is showing there. it is blank. So i checked client script which is as below.

find_real_file.png

find_real_file.png

But the question here is :

We are at ITSM/TOP/GBP/ABC domain but this client script is written at ITSM/TOP/GBP domain. 

So how can i now change the source field choice field from phone to -none-.

if will change this client script /deactivate which is at GBP domain , don't know where it will effect.

kindly suggest how to achieve this?

 

 

4 REPLIES 4

Musab Rasheed
Tera Sage
Tera Sage

Hello,

I don't think it will affect GBP domain because configuration is top down approach so whatever you write in GBP it will reflect in ABC whereas whatever you write in ABC won't reflect in GBP hence make changes and test it. Mark my answer as correct or hit like based on impact.

Regards

Please hit like and mark my response as correct if that helps
Regards,
Musab

Musab Rasheed
Tera Sage
Tera Sage

Hi,

If your issue is resolved, Please mark my answer as correct and close the thread.

Regards

Please hit like and mark my response as correct if that helps
Regards,
Musab

Hitoshi Ozawa
Giga Sage
Giga Sage

Hi Manmathpanda,

 

Client script can be overridden in the child domain. That is, create a new client script in ITSM/TOP/GBP/ABC domain that does nothing.

function onLoad() {
}

Then, check  "Inherited" checkbox. If "Inherited" in not on the client script page,  add it to the page.

find_real_file.png

find_real_file.png

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0963141

manmathpanda
Giga Guru

Hi Hitoshi,

Thanks for your update. 

i did the same , created a new client script as below but same source field is updating over the incident table. none is not coming there , instead phone is coming.

 

find_real_file.png

find_real_file.png