File uploads on multi page forms


(Glovegro) #1

I have built a number of multi page custom forms which include various ‘file upload’ inputs.

The problem I am encountering is this - if a user selects a file for upload, then mistakenly fails to complete another ‘required’ field on the same page, the page reloads with the appropriate error message - but now the file upload field has been cleared, making it easy for the user to move on thinking they have attached the file - when they have not - very confusing.

The file upload inputs in my case are not compulsory, therefore I can’t apply error messages via custom forms to alert the user. Without coming up with a convoluted javascript solution, is there anything I am missing or can do to resolve this?

Thanks in advance
Gavin


Custom form - file upload
(Bart Banda) #2

Do you have any client side JS validation on the other required fields? It should be possible to make sure the user has filled out the minimum required fields before the form submit even happens.

Also, what version of Matrix are you using?


(Glovegro) #3

We are using version v5.4.1.2

Thanks, I will look into some client side JS validation and try to prevent early submissions …

Cheers