How to set field value on case with case cancellation event RRS feed

  • Question

  • Hi,

    I have to set field value on case when case is cancelled. Can I use out of the box workflow? If not how can it be done with help of java script?

    Thanks in advance!

    Monday, September 23, 2013 3:37 PM


  • You could add JavaScript attached to the form's OnSave event (passing the execution context) to check the save mode and update the field:

    function OnSave(executionObj) {
        var saveMode = executionObj.getEventArgs().getSaveMode();
        if (saveMode === 40) { //Cancel

    Jason Lattimer
    My Blog -  Follow me on Twitter -  LinkedIn

    Monday, September 23, 2013 4:05 PM