Forums

All upload fields are empty after validation

pat01 20 Nov, 2013
Hello

I have two upload fields.

Allowed file type is PDF.

If I add a PDF in the first upload-field (= correct type) and add a JPG in the second upload-field (= wrong type), all fields are empty once they return from validation.

But the upload-field containing the correct file type should still show the file chosen before.

Is this possible and how?

Thank you!

Patrick
GreyHead 20 Nov, 2013
Hi pat01,

I had another conversation about this recently. The problem is that what needs to be shown in the upload box is the local path on the user's computer but that information isn't sent with the form and so ChronoForms has no idea what it is.

I did develop a system for one client where we kept a record of which files had been successfully uploaded and then hid those inputs if the form was reloaded.

Bob
pat01 20 Nov, 2013
Hi Bob and thanks

I tought it would not be easy....

Hiding the fields would be a solution. But only if it still is possible to add both download links into the email.

If this is possible I would be interested in your solution. 🙂

Patrick
This topic is locked and no more replies can be posted.