Accessing form variables in catalog task
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-22-2024 07:28 AM
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!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-23-2024 06:03 AM
are you sure the variable has that choice value or not?
Is that script working for admins?
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-25-2024 04:47 AM
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?