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

    How can I assign calculation values to radio button options and pass a value to a payment field

    Asked by diowestmich on August 16, 2016 at 04:48 PM

    I'm trying to auto-populate my paypal box with $70 if a person says that they are a guest or a "clergy unaffiliated with a parish," but I can't seem to get it to work. I'm not sure what I"m doing wrong - I've worked on this sort of thing a number of times, but it seems you've updated the software a little and I can't figure it out.

     

    The other two options on the form, which are "youth delegate" or "postulant/seminarian" are free, no charge options.

     

    I've tried putting values in the "I am a" field, and they just don't seem to pop up in the credit card field.

     

    I'm sorry to have to ask!

    Page URL:
    https://www.jotformpro.com/form/62286161104953?preview=true

    can can you Updated charge credit card
  • Profile Image
    JotForm Support

    Answered by david on August 16, 2016 at 06:34 PM

    First thing to do is assign your radio button options calculation values.  Click on the "I am a" field, then click on the little gear icon to bring up the options.  From there, go to "Surveying" tab and add in the values for each option.  Since your first two options are $70, assign those 70.  The last two are free so we will assign those 0:

    Next, add a calculation field to your form.  That can be found in the "More Fields" section by searching for "calc":

    For the calculation used, you only need to include your "I am a" field:

    Add the field from the "Add Field" button on the right.

    After that, pass that value to your payment field.  While setting up the payment field, change "Get Price From" to the calculation field:

    Here would be the resulting form:

    https://www.jotformpro.com/form/62286981960973

    If you have any further questions, let us know and we will be happy to help.