Incindents using templates

paulparment
Mega Explorer

Hello, when creating an Incident Template, can you lock down the short description field as to block people from altering any information.

1 REPLY 1

Sandeep Rajput
Tera Patron
Tera Patron

@paulparment You can create an onChange client script on the short description field and check isTemplate flag inside it. If the isTemplate is true you can set the short description field to read only g_form.setReadOnly('short_description',true);

 

function onChange(control, oldValue, newValue, isLoading,isTemplate) {
  if (isLoading || newValue == '') {
    return;
  }
if(isTemplate){
g_form.setReadOnly('short_description',true);
}
}

Hope this helps.