How to Make Attachments Mandatory in SharePoint List?
Requirement: In a SharePoint list, make the attachment required field!
Make attachments mandatory in the SharePoint list:
And here is the script in action:
4 thoughts on “How to Make Attachments Mandatory in SharePoint List?”
I’ve been testing this solution all day and can’t get it to function. By loading js into a CEWP, I have been able to test simple things like getting “Hello World” to display on load. But when I switch to the above js code and attempt to submit my form without an attachment, it allows me to without the error message. What might I be missing? Thanks!
Attachments are not enabled for your list, probably?
Are you in classic experience?