- 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 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 08:56 AM
Thank you!!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-31-2018 08:57 AM
Hi Desirae,
You can try g_form.setValue('Field_name','');
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-31-2018 11:38 AM
That worked however now every time I Save/Update it clears the CI as well. Do you know how I can prevent this?