Disable delete option in form templates

ramesham
Tera Contributor

Hi Team,

To create incident quickly we have certain templates created and shared with the group. When a template is shared to specific group, all members have the option to delete the template. Because of this most of the templates being deleted by mistake. We want to restrict this delete this option only to template owner or creator.

I can see template edit option by default available for ITIL role and we don't wan to make any changes in UI action. Please suggest is there any solution to handle this issue.

 

ramesham_0-1715063247336.png

 

3 REPLIES 3

Sandeep Rajput
Tera Patron
Tera Patron

@ramesham Please create/update the delete ACL on the template table and in the script check if the logged in user is the owner of the template.

How do we achieve only for incident table

@Iliyaz1 In the ACL script, check the sys_class_name field of the current record. If the class name is incident then return false else return true.

 

Here is an example.

 

if(current.sys_class_name=='incident'){
answer=false;
}
else{
answer=true;
}

Hope this helps.