- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-31-2018 08:45 AM
I would like to create an OnChange Client Script for the Incident form.
When the location changes I need the Configuration Item to be cleared out, this has to work before a save/update is done.
Can someone help me write this as I am not good with scripting. TIA!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-31-2018 08:51 AM
In the script field on an onChange client script, you just need to do:
g_form.clearValue('cmdb_ci');
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-31-2018 12:10 PM
Correct, All i did was modify the script. It is doing it on initial save as well. Is there a way to script and say "get current value and if that value changes then clear the CI" ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-31-2018 12:13 PM
Do you have any other scripts running on the form? You can also right click on the CI field and select "Watch". This should open the debugger at the bottom of the screen. Then, recreate your issue and see what scripts might be running and changing it.