Announcements
Hi,
I would like to use an attachments control to allow users to view and delete attachments but not to upload new files (as this is done through a separate workflow).
Is there a way to ensure that users cannot upload new files using the attachments control?
Thanks,
Steve
@stephenbourne would it be possible to set the DisplayMode of the attachment control to DisplayMode.View:
DisplayMode – Whether the control allows adding and deleting files (Edit), only displays data (View), or is disabled (Disabled).
If this fully answers your question, would you be so kind as to accept it as a solution.Thanks!Edit: I did not read view & delete, please ignore the above
@stephenbourne after testing I came up with the following solution:(1) DisplayMode should remain DisplayMode.Edit(2) Add the following code to the OnAddFile property:
Reset(Self); Notify("Adding attachments is not allowed", NotificationType.Error)
This should do the trick.If this fully answers your question, would you be so kind as to accept it as a solution.
@LaurensM - Amazing - this is exactly what I needed
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
Congratulations to our community stars!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
11manish 409 Super User 2026 Season 2
Mohsin Ali 328
WarrenBelz 252 Most Valuable Professional