- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-04-2022 11:35 PM
Hi,
Here firstly I selected change type as Normal and gave the Short Description as Test and again I changed the Change type Value to Emergency but the value of Short Description not changed so how can i give the exact condition to clear the value and also similar to all other variables present in form.. Please help me with this
Thanks.
Solved! Go to Solution.
- Labels:
-
Service Catalog

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-05-2022 12:09 AM
Easier with Client Script.
function onChange(control, oldValue, newValue, isLoading) {
if (isLoading || newValue == '') {
return;
}
if (oldValue != newValue) {
g_form.setValue('<fieldname>', ''); // have this for all the fields
}
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-04-2022 11:37 PM
Hi,
are you using client script or UI policy for this?
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-04-2022 11:44 PM
Hi
Thanks for the Reply!
Tried with UI policy like if Change Type is one of Normal, Emergency then clear the values but its not working...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-05-2022 12:15 AM
Hi,
you can handle using client script easily.
I will suggest to start on it and if stuck members can help
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-05-2022 12:09 AM
Easier with Client Script.
function onChange(control, oldValue, newValue, isLoading) {
if (isLoading || newValue == '') {
return;
}
if (oldValue != newValue) {
g_form.setValue('<fieldname>', ''); // have this for all the fields
}
}