Make Inactive when State is Cancelled
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2018 11:00 PM
Hi Guys,
I have a doubt that I want to make the Incident as Inactive once the state is changed to Cancelled.
Please let me know on this how to achieve this functionality.
Regards,
Gourav
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2018 11:09 PM
Write a BR which checks if state is cancelled. If yes change the field, active to "false".
BR would be before update.
if(current.state.changesTo('cancelled')){ // instead of cancelled use actual value
current.active = false;
}
Hope this helps.
hit Like / helpful / answered as applicable.
kind Regards,
Jotiram
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2018 11:35 PM
Hi,
You don't require to use business rule here .This can be achieved using on-change client side script.
Thanks ,
Mahesh Gupta

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2018 11:20 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2018 11:31 PM
hi,
If you want achieve this using on change client script .you have to write logic like this
//onchange client script
if(newValue=='cancelled')//state field value
{
g_form.setValue('active',false));
}
Thank You
Gajanan Biradar