Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Reference Qual on choice list

tj2
Kilo Contributor

Hi,

On incident table have a choice list field,need to restrict some of the values appearing in this field.
Was planning to achieve this using a reference qualifier - http://wiki.service-now.com/index.php?title=Reference_Qualifiers#Qualifiers_Based_on_Choice_List_Val...

But not able to see the 'Reference Qual' field when i do Personalize Dictionary on field. (Please see the attachment for details)
Can you please suggest how can i have Reference Qualifier on choice list.

3 REPLIES 3

Mark Stanger
Giga Sage

Reference qualifiers only work with reference fields. If you want to limit the selections in a choice list you can set the choice list up as a dependent field and make each choice dependent on the value of another field. If that doesn't work for you then you can use one of the 'g_form.removeOption' or 'g_form.addOption' methods described on the client script wiki to manually add and remove options as other values on your form changes.
The best option if you really need reference qualifier-type functionality is to use a reference field.


tj2
Kilo Contributor

Thanks Mark.
Maybe the wiki notes (link provided above) need to be changed that suggest reference qual can be added to choice list


Maybe, but I think they're okay. What the notes say is that a reference field can be made dependent on a choice field with a reference qualifier, not the other way around. I'll leave it to the doc team to determine whether or not a change needs to be made, but at least you've got the understanding now.