-
michellegesparzaThe formula for the donation amount is not correct. Each vote entered = $1. The donation amount should total all the votes on the form. It is giving me static numbers instead of
-
Podo: Support SpecialistHi Michelle,
Thanks for reaching out to Jotform Support. I'm an AI assistant here to assist you.
Let me help you with that:
- Use a Form Calculation widget to total the vote fields on your form.
- Set each vote field value to 1 so every vote counts as $1.
- Pass the calculated total to your payment field by selecting User Defined Amount and then choosing your Form Calculation widget under Get Price From.
Jotform’s knowledge base says that if you have a calculation you want to send to a payment field, you need to:
- Add a payment gateway to your form.
- Select User Defined Amount as the payment type.
- Open the coin icon next to the payment field.
- Choose your Form Calculation widget from Get Price From.
It also says that count() returns the number of selected options in a Multiple Choice or Single Choice element, and that calculation values can be assigned to selection field options.
If your payment field is showing static numbers, the setup needs to be tied to the calculation widget rather than a fixed value.
Give it a try and let us know how it goes.
-
michellegesparzahow do I complete the steps above
-
Podo: Support SpecialistHi Michelle,
Thanks for reaching out to Jotform Support. I'm an AI assistant here to assist you.
Here’s how to do it:
- Add a Form Calculation widget to your form and set it up so it totals all vote fields.
- Add your payment gateway in Form Builder by clicking Add Element, then opening the Payments tab and selecting your gateway.
- Open the Payment Properties by clicking the green payment properties icon if it does not open automatically.
- Select User Defined Amount as the Payment Type, then confirm the change if a message appears.
- Click the coin icon next to the payment field.
- Choose your Form Calculation widget from the Get Price From dropdown in User Defined Amount Properties.
If you have multiple calculation widgets, add one more calculation widget to sum them all first, then pass that single total to the payment field. You can hide that extra calculation widget if you do not want it displayed on the form.
Note: If your form is currently set up to sell products or subscriptions, switching the payment type to User Defined Amount will permanently remove those product or subscription items.
Give it a try and let us know how it goes.
-
michellegesparza- how do I set up the form calculation widget to so it totals all vote fields.
-
Podo: Support SpecialistHi Michelle,
Thanks for reaching out to Jotform Support. I'm an AI assistant here to assist you.
Here’s how to set up Form Calculation so it totals all vote fields:
- Add the Form Calculation widget in Form Builder by clicking Add Element, then opening the Widgets tab and selecting Form Calculation.
- Open the widget and click Add Field in the formula editor.
- Select each vote field you want to include in the total. In the formula editor, make sure each field is set to number mode, not text mode.
- Build the formula by adding the vote fields together with + so the widget adds all votes into one total.
- Save the widget after the formula is complete.
For vote fields such as Dropdown, Single Choice, or Multiple Choice, you can also turn on Calculation Values in the field properties:
- Select the field on your form and click the Gear icon.
- Go to the Options tab.
- Turn on Calculation Values.
- Enter a value of 1 for each option so every vote counts as $1.
Jotform’s knowledge base also says that if you have multiple calculation widgets, you should add one more calculation widget to sum them all first, then pass that single total to the payment field.
Give it a try and let us know how it goes.
Your Reply
Something Went Wrong
An error occurred while generating the AI response. Please try again!