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

How do I remove the attachment icon from Service Portal when the ticket is closed?

etabalon
Mega Expert

Does anybody here knows how to remove the attachment icon from the ticket form when the record is closed?

 

Thank you!

Enrique

 

find_real_file.png

1 ACCEPTED SOLUTION

dvp
Mega Sage

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.

View solution in original post

6 REPLIES 6

Mike Allen
Mega Sage

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();

}

Thanks Mike. This approach works via the native UI but does not get enforced from the service portal. Thanks for your input.

 

Enrique

dvp
Mega Sage

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.

Not allowing to update the record via the write ACL solves this issue on both native UI and portal.

 

Thank you dvp!

 

Enrique