• Resolved chuckster_pl

    (@chuckster_pl)


    I create a form with few field and some of them are set as required, and also captcha test is enabled. One of the fields is attachment, which isn’t required.

    When user miss some of the required fields or writes wrong captcha, the page is reloaded and after that attachment file selection isn’t remembered. Part of users won’t catch that. They are correcting catpcha or fill missing required fields and send a form without attachment they want to send in the first place.

    Is it possible to fix this?

    Thanks.

    https://www.ads-software.com/plugins/si-contact-form/

Viewing 11 replies - 1 through 11 (of 11 total)
  • Hi you might have to add some text above the form reminding them about the attachment.

    Is this the first time this happens to you? How long have you had the form running? Did you by any chance updated any plugins or added new plugins?

    Do you have a cache plugin installed? Did you carry out a test yourself to verify this issue?

    Thank you

    Thread Starter chuckster_pl

    (@chuckster_pl)

    Hi you might have to add some text above the form reminding them about the attachment

    I would rather not do that…

    Is this the first time this happens to you? How long have you had the form running? Did you by any chance updated any plugins or added new plugins?

    Don’t know how long – it’s possible that from beginning – but recent that was reported. Plugins are in newest versions.

    Do you have a cache plugin installed? Did you carry out a test yourself to verify this issue?

    Yes, I try to do this and it works as described. I don’t use cache plugin.

    Thank you for response. And sorry if my English is not as it should be… ??

    Have you tried different browsers? Can you disable all your other plugins except this one and carry out a test?

    If that does not fix your issue can you test one of WordPress default themes like Twenty Fifteen? See if that works for you?

    Thread Starter chuckster_pl

    (@chuckster_pl)

    I tried it on Firefox, Opera, IE; later with disabled all plugins and Twenty Twelve theme – all the same.

    Okay thank you for reporting back. The plugin developer will investigate further your issue.

    Thank you

    This behavior is caused by the browser. I am not able to do anything about it.

    Hi Mike, first of all thank you for this amazing plugin, congratulations.

    As chuckster_pl said, this is a problem in all browsers, my site’s users report me this problem, there is no way to fix this? I noticed that other fields like inputs doesn’t lost their values after a fail validation, question: if the text field of the image location is changed for a read-only input doesn’t the problem will be solved?

    Thanks, hope you can help me.

    After some search about this i found that:

    You can save the data in variables and populate it later, except for the type=”file” input field. It will be a security problem if the files can be prepopulated(or say selected without user permission) and browsers won’t allow it.

    One option is to save the file in any temporary folder in server and if validations worked fine, move it to the uploads directory.

    Another option is to show your form in steps(in pages) and the file upload option in the last step, so that the user will reach the file upload section after all validations and you can do the file upload validation in the last step.

    A third option would be to use AJAX to send the form, thus after a fail validation the form is not submitted and the type = “file” is not lost.

    An example for implementig this: https://hayageek.com/examples/jquery/ajax-form-submit/index.php?tab=2

    mbrsolution

    (@mbrsolution)

    @chuckster_pl is your issue resolved? If it is can you mark this thread as resolved.

    Thank you

    Thread Starter chuckster_pl

    (@chuckster_pl)

    OK. Thanks for help.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Selected attachment is missing – after field or captcha is invalid’ is closed to new replies.