Is it possible to pass a value from a field into the amount box of a payment field?

  • Profile Image
    renag
    Asked on August 22, 2017 at 08:55 AM

    My form is in Hebrew, so I'll write the form details names here

    I would like the contents of input73 to be copied into myProducts automatically thru a condition  

  • Profile Image
    Mike_G
    Answered on August 22, 2017 at 10:42 AM

    Upon reviewing your form, I see that you have set calculation values to the Single Choice field options that will then be passed to a Short Text Entry field conditionally.

    To my understanding, you would want to have whatever value of the selected option to be on the Authorize.Net amount field if the "Credit Card" option is selected from another Single Choice field.

    I would suggest you delete the "Short Text Entry" field in your form that shows the value of the selected option

    and use a Form Calculation widget instead to show the amount — How-to-Perform-Form-Calculation-Using-a-Widget

    You can also delete the condition that passes the value to the Short Text Entry field.

    After that, follow the instruction that is found in this guide to pass the value in the Form Calculation widget to the payment field in your form — How-to-pass-a-calculation-to-a-payment-field

    The value will always be passed to the payment field in your form, however, since the payment field is hidden unless "credit card" is selected from the other Single Choice entry field in the form, it will not process any credit card payment.

    Here's a test form with payment field in sandbox mode: https://form.jotform.com/72333642874965

    Feel free to test it or clone it to your account so you can inspect how it is setup How-to-Clone-an-Existing-Form-from-a-URL

     

    I hope this helps. If you have other questions, please feel free to contact us again anytime.