Attachment Remove button hide only for change request table

shravan3
Kilo Expert

Hi ,

Please let me know how to hide/disable attachment the remove button only change request table ?

No user should not able to delete the attachment

Thanks & Regards,

Shravan Kumar

15 REPLIES 15

Duly Noted Sir.


That's why suggested the BR in the first place mate


-Anurag

I know


Hi, Kalai/Anurag,



Thanks a lot for guiding me through it.


I thought of creating a separate attachment page with the custom code in it so that we don't impact the OOB pages for future sake.


I managed to call the custom attachment page though GlideModal in an onload client script on the specific table.



This works fine for me.


I would really appreciate if you can guide me if this is way out is good practice or not or is it still going to impact few things.



find_real_file.png




Thanks


Gaurav


This is much better but a counter argument will be that this script uses some DOM manipulation. Though I feel this is acceptable as even if this fails, we can still disable the feature without harming anything else. I would try to go for the business rule option first even if it isn't the best way interms of user experience and come to this if the business cannot leave without it.



Tip : Adding a try/catch block for the script similar to yours is always best. Even if the script breaks for some reason, your form will still be functional.