I followed the instructions explained here (only the topic with the code) Mandatory File Attachmant
on how to make the attachment mandatory (my request is that there can be multiple documents), however, when the form is edited on infopath, the script put on top does not work any longer and it will not even let me close/save the page.
Is this normal? How to have the mandatory attachment field on an infopath form? (infopath is 2013 and sharepoint is on-line