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.

How to show one extra choice on request when I choose a CI on catalog form

Priya Singh 2 2
Tera Contributor

Hello Team,

My requirement is that when I choose 2 CIs ex - xyz, abc on catalog item it creates one request and this request item has one field called category which already has 2 choices I want one more choice to be display when CI is xyz, abc else it has only 2 existing choices. (This Category field is only available on request, not on portal), how can I achieve this requirement by following best practice

 

 

5 REPLIES 5

Ankur Bawiskar
Tera Patron
Tera Patron

@Priya Singh 2 2 

you can use onChange catalog client script and use g_form.addOption() and g_form.removeOption() on select box variable

it's an easy requirement, what did you start with and where are you stuck?

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

I was using incorrect backend value my bad

@Priya Singh 2 2 

Glad to know.

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@Priya Singh 2 2 

Hope you are doing good.

Did my reply answer your question?

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader