how to set duration field to blank from 0:0:0 (zero) number

Laukik Udpikar
Tera Expert

Hello Experts,

I want to set my duration field as blank, currently it defaults to 0, when nothing is set, due ti which I cannot check if the duration is selected or not.

find_real_file.png

Is there a way to abort user action on change request values of standard change template when duration in zero.

Let me know if this requirement needs further explanation, i'll happily share. 

Thanks

2 REPLIES 2

Laukik Udpikar
Tera Expert

any updates on above?

Hi Lukik, 

I had the same issue and Fixit with a BR, setting the fields as null and works.

Offcourse you need to set a condition after the inster of update the field you consider.

(function executeRule(current, previous /*null when async*/) {
    current.approved_change_window_duration = null;
})(current, previous);

 

Result as image