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.

Restrict choices in Select box variable in Catalog Item

Nithin21
Tera Expert

In table cmdb_ci_appl, i have "FieldB" which is string field with the below choices

Choice 1 on table cmdb_ci_appl

Choice 2 on table cmdb_ci_server

Choice 3 on table cmdb_ci_db_instance

 

I have a variable on Catalog item with variable "FieldA"

Type = Select Box

Choice table = cmdb_ci_appl

Choice field = FieldB

 

 

How to get only Choice 1 (i.e. Choice defined for table cmdb_ci_appl) In "FieldA" of the catalog variable 

Ryte now it displays 

Choice1

Choice2

Choice3

2 REPLIES 2

Brad Tilton
ServiceNow Employee
ServiceNow Employee

You can use a client script with g_form.removeOption() to remove options from a choice list.

I was hoping to avoid Client scripts as it introduces a lot of scripting.

Is it not possible to achieve using choice field / reference qualifier