Web Form Forgets Attachments on Page Update

Mike Bilz asked on January 25, 2019 20:20

Hello Kentico Team,

I have a complex Web Form that involves numerous "hidden fields" that are revealed or hidden based on a users answers to certain questions.

An issue that I am running into is that I also have several "Upload File" Form Controls, and these fields seem to forget their content any time the page is updated. So for example, if field three is an Upload File form, and field four has depending fields with visibility conditions, a selection in field four will remove the file uploaded into field three.

This is obviously a huge headache for anyone filling out the form.

Is there a piece of code I need to be adding somewhere, or a box I need to tick on the back-end to correct this issue?

Any assistance would be greatly appreciated. Thanks in advance.

-mike

Recent Answers


Patrick Taylor answered on January 31, 2019 21:39

Mike, it sounds like you might need to use JavaScript to handle the show/hide and validation logic for your form. See this similar question where Kentico Evangelist Bryan Soltis suggests the same solution. https://devnet.kentico.com/questions/kentico-form-file-upload-clears-if-form-not-fully-validated

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.