How to remove the -- None -- choice with a client script

Christian Ander
Mega Guru

If you want to remove/hide the "-- None --" option in a choice list using a client script (for example if some users should be able to see the -- None -- option and some should not) you should use the following script line.

g_form.removeOption('impact', '', '-- None --')

3 REPLIES 3

Ian Mildon
Tera Guru

And conversely if you want certain users to be able to see different options you can use

g_form.addOption('<field>',  '<value>',  '<label>');

Neeraj Sharma10
Tera Guru

Hello,

 

To Remove --None--  option Using Client Script you can use.

 

 g_form.removeOption('impact', '', '');

 

 

Thanks

Neeraj Sharma

 

Please mark Answer Helpful or correct accordingly.

DucA
Giga Contributor

where can i add the script