Can the attached file on submission form be retained if I'm prevented from submittin because I missed some fields that are required or have wrong data type?
I have a submission form with a couple of fields that are required (and they should also only accept numbers) along with a file field. The submission works fine, but say, when a user fills out all fields (including the file field) except for one of the number fields (or if i input a text instead of a number in one of the fields), when I hit submit, the page gets reloaded telling me to fill in all of the fields properly (to not leave any fields blank or to input only numbers), which is expected, but I noticed that the file I have attached earlier disappears. Is there anyway to retain the file when the validation arises?
You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
Question
cordova
Hi,
I have a submission form with a couple of fields that are required (and they should also only accept numbers) along with a file field. The submission works fine, but say, when a user fills out all fields (including the file field) except for one of the number fields (or if i input a text instead of a number in one of the fields), when I hit submit, the page gets reloaded telling me to fill in all of the fields properly (to not leave any fields blank or to input only numbers), which is expected, but I noticed that the file I have attached earlier disappears. Is there anyway to retain the file when the validation arises?
Link to comment
Share on other sites
1 answer to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.