Update Conflict Change Script to only show on Normal and Standard changes

Susan Davidson
Tera Guru

I have a requirement that we show a conflict message only for normal, standard and urgent changes

I have updated the conflict properties and the onchange rule to reflect the new message.

 

The problem i am having is excluding emergency changes (which don't require this message to show)

 

I've tried adding if (startDateReadOnly && type != 'emergency" || endDateReadOnly && type !=emergency)  to the below code without any luck.


How could i prevent this from showing if the change type is emergency?

SusanDavidson_0-1689797478252.png