• Resolved jlohl

    (@jlohl)


    Hello,

    is there a setting in File Upload Pro to avoid the form reset when clicking on upload button ?
    Now when you press upload, all fields inputs are deleted. I’d like to keep those fields so that a user may upload files one after another without having to fill again the form.

    Have a nice day
    JL

    • This topic was modified 8 years ago by jlohl.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author nickboss

    (@nickboss)

    Hi, a simple way to suppress resetting of fields is to redeclare their reset functions. To do this, add the following script inside the page right below the shortcode:

    
    <script type="text/javascript">
    var userdata_count = wfu_get_userdata_count(1);
    
    for (var i = 0; i < userdata_count; i++)
     window['userdata_1_codes_' + i].reset = function(field, hidden) {};
    </script>
    

    Regards

    Nickolas

    Thread Starter jlohl

    (@jlohl)

    Hi Nickolas,

    As usual, support is quick and efficient : it works, thanks !

    Regards
    JL

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Form reset’ is closed to new replies.