copy on hold reason to short description- SOW

ofekg
Tera Contributor

i have this functionality in a client script(photo below): in every change of the on hold reason before the save - the label of the choice (for example: awaiting caller) is copied to the short description field.
how to make it work , the same functionality in the SOW workspace.
itil roles should see it.

ofekg_0-1730983661924.png

 

1 REPLY 1

Gangadhar Ravi
Giga Sage
Giga Sage

@ofekg Please try below this should work in both Classic and SOW view.

 

function onChange(control, oldValue, newValue, isLoading) {
    if (isLoading || newValue === '') {
        return;
    }
    var holdOnReasonChoiceLabel = g_form.getDisplayValue('hold_reason');
    g_form.setValue('short_description', holdOnReasonChoiceLabel);
}

Please mark my answer correct and helpful if this works for you.