- JotForm SupportdavidAnswered on October 16, 2014 at 04:49 PM
To accomplish this, you would need to have custom calculations in your form, then pass the calculated value to your payment form:
Here is a quick form I setup to show you what I mean:
Essentially, I just setup the calculation values of the first three radio buttons to reflect how much they would cost and passed those values to the calculation widget. The 4th radio button shows a hidden field when selected that allowed for the user to enter whatever they would like. Then that value is multiplied by 1.25 and passed to the calculation widget. You would then pass that value to your payment field.
Let us know if this is not what you were looking for or if you have any questions about the setup and we will be happy to assist you further.
- merpAnswered on October 30, 2014 at 10:41 AM
Thanks for the help on this, David! I posted a reply on this last week, but I don't think it went through. What you created is exactly what we needed. Is there a way you can incorporate that to our Clone of Order Form http://www.jotformpro.com/form/42854078302959?
I just wanted to see if you can mimic what you created on our form if possible so I don't have to recreate the wheel.
Thanks again for the help and great support!
- CharlieAnswered on October 30, 2014 at 12:17 PM
If you wanted to get the form that my colleague, david, made. You can clone his form by following this tutorial or guide link: https://www.jotform.com/help/42-How-to-Clone-an-Existing-Form-from-a-URL.
I would also recommend that you read and explore the tutorials presented above, so that you may adjust the fields and calculations whenever it is necessary.
You can also follow the screenshots below to have a quick guide.
1. Add the fields that are necessary. Add a radio button list and a textbox field.
2. Click on the "Conditions" setup and click "Show/Hide a form field" which in our part is the "Enter number of people" field.
3. This will be the condition for it to show and hide the field.
4. On your Radio Button field, right click or click on the settings icon and choose "Properties". Edit the "Calculation Values" to add the pricing to the order of the radio buttons.
5. Search for the widget "Form Calculation" and click the Wizard settings.
6. This is the calculation for your pricing. This simply means:
Get the calculation values of the radio buttons * 1 (just a default to have a result) and multiply it to the number of people entered (the default is none not "0" so even though you choose radio button 1, the value won't change).
The output will be showed in the actual Form Calculation field.
I hope this helps. Let us know if you need further assistance on this.