- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2019 08:16 AM
Does anybody here knows how to remove the attachment icon from the ticket form when the record is closed?
Thank you!
Enrique
Solved! Go to Solution.
- Labels:
-
Service Portal Development

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2019 08:55 AM
All you need to do is restrict write access to the record when the state is closed. Restricting the edit access, automatically remove the attachment capability.
Update Write ACL on your table to restrict edit access when the state is closed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2019 08:22 AM
On your BC table, add an onLoad client script that says:
if(g_form.getValue('status') == 'Complete - Approved'){ //this is dependent upon the name of your field and the value of the field; adjust accordingly
g_form.disableAttachments();
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2019 10:39 AM
Thanks Mike. This approach works via the native UI but does not get enforced from the service portal. Thanks for your input.
Enrique

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2019 08:55 AM
All you need to do is restrict write access to the record when the state is closed. Restricting the edit access, automatically remove the attachment capability.
Update Write ACL on your table to restrict edit access when the state is closed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2019 10:41 AM
Not allowing to update the record via the write ACL solves this issue on both native UI and portal.
Thank you dvp!
Enrique