To remove choice from reference field

Angel27
Tera Contributor

Hello ,

Could anyone please help with the script to remove choice from reference field.

Thank you !

11 REPLIES 11

Yousaf
Giga Sage

Hi Angel,

You can use removeOption() to remove and addOption() to add.

This can be done via Client script. Based on the condition you have to add or remove the choice values. Please refer.

 

https://www.servicenowguru.com/scripting/client-scripts-scripting/removing-disabling-choice-list-opt...

 

Mark Correct or Helpful if it helps.


***Mark Correct or Helpful if it helps.***

Angel27
Tera Contributor

The field is of type reference actually.

O sorry I was too fast to answer. In that case you will need to use reference qualifier.


***Mark Correct or Helpful if it helps.***

here check this link please.

Remove option from Reference field when...



***Mark Correct or Helpful if it helps.***