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 to pass a value via URL to a embedded form using the iFrame widget?

    Asked by brentac on May 05, 2016 at 07:16 PM

    Hi!

    My form uses the Form Calculation widget to pass total price to payment with Braintree. 

    I need to also add a PayPal option, so I'm setting it up with Multiple Payment Options (using the iFrame method), however I can't find any documentation or support on how to do this. 

    Is this possible? And if so, how? 

    MANY THANKS!!!

    Brent

    payment options form calculation multiple payment pass
  • Profile Image
    JotForm Support

    Answered by Kevin_G on May 05, 2016 at 07:37 PM

    I think that this will not be possible since you cannot modify the link that is set in the iFrame widget and pass the variable there, I have tested and did not work. 

    The only way that I can see to achieve it would be setting the products on each form so once the form is displayed you will have the calculation there. 

    Other option that I can think that could be the easiest way, would be redirecting your users to the payment form based on the selection they made, either if they want to pay via PayPal or Braintree, you are able to pass variables through the URL, this app will help you with that: http://prepopulate.jotform.io/

    With the app you will get the link to the payment form, where you have the integration, then you will need to get the name of the field that you will send in the link, the guide below will help you to get the name of it: 

    How-to-find-Field-IDs-Names

    Once you have the links where your user will be redirected to pay, you will use conditions to redirect based on the selection and this guide will help you with that: 

    Change-Thank-you-URL-Based-on-a-Condition

    Hope this helps.