- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2014 11:57 AM
Hello everyone!
We got a very intricate request for a new item for our service catalog, and I'm having some trouble setting it up.
With this catalog item, the initial request is submitted with half of the numerical data that's needed. Once it reaches the first catalog task, it must be populated with the rest of the numerical data and then calculations need to be made with that data. But it has to do all of this on the catalog task form, NOT the catalog item. I'm trying to create an onChange client script to run on the Catalog Task table so the script runs in the right situation, but it's not recognizing what I need to be doing. I know that onChange scripts often need a field/variable attached to them so Service Now can see when it's going to fire the script, which is fine. However, the field that I need the script to fire on is a variable from the catalog item, not a field on the catalog task form itself.
Is there any way to achieve this?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-22-2014 08:54 PM
Hi
You can use catalog client scripts on RITM/TASK also.
you just need to modify the form layout of catalog client script and add 'applies to RITM/ applies to TASK'
and then by checking one of these you can set it to run on the task or RITM form.
Lemme knw if you need more
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2018 12:35 AM
Hi Girish,
I have similar issue. I have selected both check boxes "Applies on Request item" and "Applies on Catalog task". But, catalog client scripts are not working on catalog task (working on request item). Could you please help asap to resolve the issue?
Thanks,
Pavan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2014 01:58 PM
You are using an older SN version. In your case I would suggest creating a flag value that you can use to trigger the onChange script. Set the flag onSubmit to suppose false and when certain fields are populated,set the flag to true and trigger the onChange script on catalog task.
You will be allowing the users to edit the variables on the task form?