[Fixed]-Can't set html form input file from modal / popover

1👍

It might be that the modal input elements are not created inside the <form> element. Input elements outside of this container will not be sent to the server upon submit.

You can first check out what is actually transmitted with the development console of your browser (in Chrome it’s the Network tab). If your fields aren’t there, then you might need to write a bit of Javascript, to either:

  • copy the contents of the input elements inside the modal to hidden fields within the form, for using the regular submission process
  • or, hijack the submit event and manually compose which fields you want to send

Leave a comment