How to disable attachments on change request view.

Adam95
Tera Contributor

When change request goes to state awaiting approval only change managers should see the attachment clip(should be able to remove and add attachments).

1 ACCEPTED SOLUTION

Abhay Kumar1
Giga Sage

@Adam95 there can be multiple other way but I can implement in this way,

 

Use client on-load script, varify change state is not awaiting approval and role as well (otherwise will apply to all others) and use below code to stop adding/removing any attachment , but user would be able to read existing attachments,

g_form.disableAttachments

 

Hope this will help you

 

View solution in original post

2 REPLIES 2

Abhay Kumar1
Giga Sage

@Adam95 there can be multiple other way but I can implement in this way,

 

Use client on-load script, varify change state is not awaiting approval and role as well (otherwise will apply to all others) and use below code to stop adding/removing any attachment , but user would be able to read existing attachments,

g_form.disableAttachments

 

Hope this will help you

 

Adam95
Tera Contributor

Thanks for your advice. Yes, that would work for client side., what about server side. Could create acl on sys_attachment but how to check for the change request state?