PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Dynamically get & use fields values

  1. Hi there, I'm not sure if this topic has already been discussed, but I wasn't able to find a relevant answer.

    Let's say I want to sell a product: I have a simple form with the main product and its base price, a couple of product options, a grand total and a description field.

    I had no problem in making the "total field" display the price of the product and the selected options, but I'd like to use that same value in other fields before submitting the form, possibly even applying some math to it.

    For instance, I'd like to have an HTML text filed that says something like this:
    "Thanks for choosing our great Whatever product! If you click "Submit" you will owe us a grand total of 100$, but you can choose to pay only 40% of it right now (= 40$) and the rest (=60$) will be charged only at the end of the month".

    Is this possible?

    Thanks a lot!

    Posted 7 years ago on Saturday February 9, 2013 | Permalink
  2. Rather than use the total field, I would use number fields and then check the box "Enable Calculation" and perform your math there. Then use one of those number fields in your next step, whatever that might be. I made a quick example here: http://gravity.chrishajer.com/use-number-field-calculation-instead-of-total/

    Posted 7 years ago on Saturday February 9, 2013 | Permalink
  3. Wow, that's awesome (to stay in topic!) :)

    And, once I've done the final math and choices, is it possible to assign the final value to a "total field", thus submitting THAT value to PayPal?

    Posted 7 years ago on Saturday February 9, 2013 | Permalink