The CreatorCon Call for Content is officially open! Get started here.

Create a new ACL for the “Incident table”, where an ITIL user must have the read-only access to ALL the fields in the incident table (i.e. all the fields present on the incident table must be “greyed-out for an ITIL user”

Anmol Soldier1
Tera Contributor

do share Screenshots of steps

1 ACCEPTED SOLUTION

Musab Rasheed
Tera Sage

Hi Anmol,

Try to create read ACL like this if works fine but mostly it might create conflict with other ACL so first try below

find_real_file.png

If ACL doesn't work then simply write Onload client script like below. Mark my answer as correct if that helps.

function onLoad() {

  if (g_user.hasRoleExactly('itil'){ 

var fields = g_form.getEditableFields();
for (var x = 0; x < fields.length; x++) {
g_form.setReadOnly(fields[x], true);
}

    }

}
Please hit like and mark my response as correct if that helps
Regards,
Musab

View solution in original post

1 REPLY 1

Musab Rasheed
Tera Sage

Hi Anmol,

Try to create read ACL like this if works fine but mostly it might create conflict with other ACL so first try below

find_real_file.png

If ACL doesn't work then simply write Onload client script like below. Mark my answer as correct if that helps.

function onLoad() {

  if (g_user.hasRoleExactly('itil'){ 

var fields = g_form.getEditableFields();
for (var x = 0; x < fields.length; x++) {
g_form.setReadOnly(fields[x], true);
}

    }

}
Please hit like and mark my response as correct if that helps
Regards,
Musab