We have an InfoPath 2013 form created by a SharePoint designer workflow. We would like to add an attachment control to the InfoPath form. We understood that by design it is not possible to add such a control to an InfoPath form.
Is there perhaps a way to add custom javascript to the InfoPath form (e.g. sharepoint javascript object model) and let the form trigger the code when the user hits submit?
The aim is to have a user add a document to the InfoPath form. The document will then be posted to a document library.
What would be the approach here?