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

xavier_robert
Tera Expert

If you could not change the type of dropdown (when subclassing a table with the dorp down).


You could use a client script onload :


g_form.removeOption(<your field>, '');