How to disable Delete button in OOTB AttachmentListEmbed List View
We use an out-of-the-box list view to show attachments on screen as below. This list view is Work-.AttachmentListEmbed. Requirement is that per certain condition, this Delete button below has to be disabled. We can pass parameter from section rule to this list view if needed but is there any way that we can control this button to be enabled / disabled?
**Moderation Team has archived post**
This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.
pyDeleteAttachment uses the rule "TrashButton". TrashButton rule is an available rule, so you can modify it as per your requirement. Probably, you can remove When condition defined in this rule and keep only the disabled image.
Also, I think there when rule"CanDeleteAttachments" which works on privilege.
Please let me know in case you need any clarifications on this.