Do I Need the Submit Button

  • pabgarmi
    Asked on November 2, 2014 at 11:18 AM
    Also, is there a need to incorporate the Submit button? I am thinking on just having the customer to click on the Upload file button and this starts the upload process. Once the files finish uploading, that is it, the cusotmer does not need to click submit.
  • David JotForm Support Manager
    Replied on November 2, 2014 at 12:11 PM

    Yes, a submit button clearly indicates the user that she can click it in order to submit the values entered by her in the form, which is important from usability point of view. 

    If you are on planning to accomplish that, you would need to download the source code, And accomplish that with Jquery or JavaScript.

    Using Jquery:

    <form id="target" action="destination.html">

      <input type="file" id="file" value="Go" />

    </form>

     

    $('#file').change(function() {

      $('#target').submit();

    });

    A  shorten way to do this is defining the submit in the onChange setting in the input tag for the upload:

    <form action="http://example.com">

        <input type="file" id="file" onDISABLEDchange="form.submit()" />

    </form>

    But still, my recommendation is to keep the submit button. Hope this helps you.