How will the total calculation make it to the embedded form where the payment is happening?

  • SunbridgeInstitute
    Asked on December 16, 2015 at 11:33 AM
    If I do not put the products in the payment tool, and the user makes the choice from a basic checkbox or dropdown on the primary page, then how will the total calculation make it to the embedded form where the payment is happening?
  • KadeJM
    Replied on December 16, 2015 at 11:59 AM

    If I am not mistaken I believe you mean that you are wondering how you could just send a calculated price to your payment field if you have no products?

    I mentioned this in relation to the other thread over here that was split.

    Please see http://www.jotform.com/help/275-How-to-pass-a-calculation-to-a-payment-field 

  • SunbridgeInstitute
    Replied on December 16, 2015 at 12:01 PM

    Yes, this is getting really confusing with the split thread. I do know how to pass a calculation to a payment field already. I am wondering how to do this on multiple forms where there is embedding happening as well.

  • Charlie
    Replied on December 16, 2015 at 1:05 PM

    If you wish to pass the calculated value on another form, that is possible by following this guide: http://www.jotform.com/help/270-How-to-Pass-a-Calculated-Value-in-a-Paypal-Field-of-a-Second-Form.

    However, that guide directly pass the calculated value using the direct form URL.

    Below is an example I made. I have two forms.

    Form 1 will be where the calculated value happens: https://form.jotform.com/53495634173966 

    Form 2 is the payment form, the user will be redirected here after completed Form 1, it will also automatically prepopulate the payment total here: https://form.jotform.com/53494969814978? 

    Try filling out my Form 1 and input a calculated value on it, click the submit button and see how it works.

     

    If the form is embedded on a website, you will just need to change the prepopulated form URL with your own website link.

    By default, this is how it looks like using Form 2's URL:

    https://form.jotform.com/53494969814978?myProducts[price]={calculatedValue}

    In your embedded website, it should be like this:

    http://www.yourwebsite.com/page1.php?myProducts[price]={calculatedValue}

     

    However, your website should allow prepopulation on URL parameters, if not, unfortunately, you might need to use a different approach.