Remove --none-- option from dependant field

vaibhavdesai
Kilo Expert

Hello Experts,

How to remove --none-- option from dropdown of dependant field?

I have one field named "Stage". Values of this field are dependant on "State" field. Currently, we have --none-- value in dropdown. And I want to remove that value. But, Directly changing option of "Dropdown without --none--" is not working.

Currently, Choicelist values are not managed by client script. We have added values of "state" field on "Dependant Value" in "Stage" field choice list.

Is there any possible solution for this issue. OR do I have to remove all the values from "Dependant value" in dictionary entry of "Stage" field and Create Client Script to populate values and than change the option of "Dropdown without --none--".

Thanks in advance:-)

Regards,

Vaibhav

1 ACCEPTED SOLUTION

goto 3.3 Removing the -- None -- Option



the note says


Note: If the field is dependent on another field, the -- None -- option remains available.




View solution in original post

10 REPLIES 10

goto 3.3 Removing the -- None -- Option



the note says


Note: If the field is dependent on another field, the -- None -- option remains available.




Hi Namrata,



Thanks. This clears the scenario for me. I guess i am left with only option of creating client script.



Regards,


Vaibhav


zica
Giga Guru

Vaibhav Desai



MAke a client script will will add or remove value from the dependent field.


HEre is an article which will help to achieve your query : Removing or Disabling Choice List Options - ServiceNow Guru



Kind regards,


ZA


Do not feel shy to mark correct or helpful answer if it helps or is correct


Mihir Mohanta
Kilo Sage

Hi Baivab,



1.1st select "Drop down without none " option for state field.Give a default value there.


2.Then go to the dictionary of stage field. Select "Drop down without none " option and Give a default value which is dependent on default value of state field.



In this way you can remove --none -- option from stage field .



Thanks,


Mihir


It doesnot work that way Mihir.