What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.

At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.

We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.


  • Profile Image

    Is it possible to have a form submit as soon as the user makes a choice?

    Asked by cheekyface on March 22, 2014 at 01:08 AM

    Is it possible to have a form submit as soon as the user makes a choice?
    I'm always trying to reduce the number of steps for our customers.  I'm going to try to create a form to allow our users to decline quotes.  

    So there will be 2 buttons: "Accept" and "Decline"

    It would be nice to have the form submit as soon as the choice is made.  

    I've tried to use two submit buttons and assigning an image for each (one as submit & the other as decline) but there is no way to see which one was submitted when I look at the submissions.

    If this is not possible then can I make this a feature request?

    This is what I have done so far.  

    http://form.jotformpro.com/form/40799017275967?

    I just need to attach an identity to the submissions so that I can tell what was declined from what was submitted.  I feel like I'm missing something that is probably very obvious???

    form submit Submissions Feature Request create a form
  • Profile Image
    JotForm Support

    Answered by ashwin_d on March 22, 2014 at 02:44 PM

    Hello cheekyface,

    Unfortunately, we do not have such feature but it is possible to achieve your requirement by downloading your form's source code and add custom JavaScript code to submit the form as soon as the radio button is clicked.

    I've tried to use two submit buttons and assigning an image for each (one as submit & the other as decline) but there is no way to see which one was submitted when I look at the submissions.

    I have not understood the above question though. In the current version of your form, when the form is submitted you should be seeing the value of your radio button in the submission view. Will that not suffice to find out which button was clicked?

    Do get back to us on my above question and also if taking source code route seems okay to you and we will try to find a solution for your requirement.

    Thank you!

  • Profile Image

    Answered by cheekyface on March 24, 2014 at 06:11 PM

    Hi Ashwin_d and thanks for your reply.

    Sorry for the confusion.  I changed the form after I submitted the question and YES it's OK as it is but was just wondering if I could do it without using radio button options and have it just submit the form with one click.  I have an I have another idea that may work out OK.

     

    thnaks for your help.

  • Profile Image
    JotForm Support

    Answered by EltonCris on March 24, 2014 at 07:51 PM

    @cheekyface

    Thanks.

    As explained previously by my colleague, this is possible when you take your form source code and inject script that performs the action.

    Example. For the form you've provided here.

    <script>

    (function(){

    var agree = document.getElementById('input_4_0');

    agree.onclick = function(){

    document.getElementsByTagName("form")[0].submit();

    }

    })();

     

    </script>

    Just place this under your form source code once you take it on the form builder.

    Let us know if this doesn't help or if you need further clarification.

    Regards!

  • Profile Image
    JotForm Support

    Answered by EltonCris on March 24, 2014 at 07:57 PM

    My bad, I have updated the script on my post or you can take it below.

    <script>

    (function(){

    var agree = document.getElementById('input_4_0');

    agree.onclick = function(){

    document.getElementsByTagName("form")[0].submit();

    }

    })();

    </script>

  • Profile Image

    Answered by cheekyface on March 25, 2014 at 01:36 AM

    Thank you.

    I'll do that if I have to.  For now I'm enjoying not having to worry about web pages working properly etc so i just directly link to the forms.

     

    Thanks again!
    Danny. 

  • Profile Image
    JotForm Support

    Answered by ashwin_d on March 25, 2014 at 02:20 AM

    Hello Danny,

    On behalf of my colleague, you are welcome.

    Do get back to us if you have any questions.

    Thank you!