Accessing form variables in catalog task

GabrielCSSMI
Tera Contributor

Our users have a request form to provide information to the IT department via a catalog task. Once the information is validated and processed, the IT department will close the task which will trigger the automated flow for the request's completion.

 

I'd like to provide the person which will work on the validation task to be able to modify the variable values within the task to adjust the information provided. To make the work easier, I want to filter select field variables based on choices the person makes with other variables.

 

Trying to use g_form.addOption("variable", "display", "value") does not work from client script even with the "Applies on Catalog Tasks" option ticked.

 

The people processing these requests currently work within the confines of the servicenow console environment.

Is there any way to access catalog variables from script in this environment?

Thank you!

2 REPLIES 2

Ankur Bawiskar
Tera Patron
Tera Patron

@GabrielCSSMI 

are you sure the variable has that choice value or not?

Is that script working for admins?

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

@Ankur Bawiskar 

I'm trying to add choice options from script depending on an other field's value change.

Would it be easier to have all choices preexisting and to filter than to proceed that way?