- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-11-2019 06:43 AM
Hi All,
Currently I want to change the State of Incident from On Hold to New whenever there is a change in Assignment Group on the form.
Can anyone suggest me how to achieve the same.
Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-11-2019 06:47 AM
Hello SNOW@das,
1. With the help of onChange client script you can achieve this.
SCTIPT:
function onChange(control, oldValue, newValue, isLoading, isTemplate) {
if (isLoading || newValue === '') {
return;
}
if(g_form.getValue('assignment_group') !='' ){
g_form.setValue('incident_state', 1); // 1 is value of New State
}
//Type appropriate comment here, and begin script below
}
OR
2. You can write Before INSERT / Update Business Rule and adding condition Assignment Group changes AND Assignment Group IS not Empty.
Business Rule Script : current.incident_state = 1; // Replace 1 with your NEW state Value
Thanks,
Abhishek Gardade
Abhishek Gardade
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-11-2019 06:47 AM
Hello SNOW@das,
1. With the help of onChange client script you can achieve this.
SCTIPT:
function onChange(control, oldValue, newValue, isLoading, isTemplate) {
if (isLoading || newValue === '') {
return;
}
if(g_form.getValue('assignment_group') !='' ){
g_form.setValue('incident_state', 1); // 1 is value of New State
}
//Type appropriate comment here, and begin script below
}
OR
2. You can write Before INSERT / Update Business Rule and adding condition Assignment Group changes AND Assignment Group IS not Empty.
Business Rule Script : current.incident_state = 1; // Replace 1 with your NEW state Value
Thanks,
Abhishek Gardade
Abhishek Gardade
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2019 07:30 AM
Hello SNOW@Das,
Any updates on this?
Please mark answer correct if you found it as helpful.
Thanks,
Abhishek Gardade
Abhishek Gardade
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2019 09:13 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2019 09:18 AM
Done Bro..