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.
Two submit buttons with conditions?Asked by kucanskiposlovi on April 25, 2016 at 11:10 AM
Hi, I would like to have 2 submit buttons based on 2 radio buttons.
One button is original Paypal submit button that submits the form, sends an autorespond email no.1 and takes you to the Paypal page to pay.
The other submit button just submits the form and takes you to a thank you page and sends an autorespond email no.2.
Is that possible in a single form?
You can add multiple submit buttons in your form, unfortunately, the submit buttons cannot be tied on conditions in an "IF" statement. You can show/hide it based on the radio buttons.
Also, the form is automatically redirected to "Paypal" whenever the total purchase of your form is greater than 0.00. Here's an example form: https://form.jotform.com/61154775613962. If you select a product and your total purchase is greater than 0, then you are redirected to Paypal's payment gateway. If you select the free product, the form just submits and does not redirect you to a Paypal page.
For the autoresponders, you can associate them with conditional logic, here's a guide on it: http://www.jotform.com/help/167-How-to-send-to-a-specific-email-address-based-on-a-selection. I guess you can tie your conditions based on the radio buttons instead of the submit buttons.
I hope that helps.
Do you think this be coded using the source code?
I think it is not required to have two submit buttons based on your requirement. Since you say that the submit button based on radio buttons, you may set the conditions based on the radio button and redirect the form to PayPal. Please see the demo form below:
You may clone the form to your account to see how the conditions are set. If you are having some programming knowledge with web development, you may also achieve two submit buttons by adding custom code to the source code downloaded for your JotForm. Or you may need to hire a third party developer to get this done.
If you need any further assistance, please let us know. We will be happy to help.