Disable delete option in form templates
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-06-2024 11:31 PM
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.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-07-2024 12:04 AM
@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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-09-2024 12:15 AM
How do we achieve only for incident table

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-09-2024 01:33 AM
@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.