I want to make file attachments mandatory in a list. Every new element should have an attachment. Therefore I used a content editor webpart with following sourcecode:
Unfortunately it doesn't work. If I replace the code with anything like
abcdef the webpart doesn't appear at the new element form. Does someone has any ideas and suggestions?
Thanks in advance.