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.

A variable that holds the value of the total

  1. Hello there, I just created a pricing form. now I have a few questions regarding my projects.

    1. Where do I found the variable that holds the "total" on the total field? because I want to catch that value..

    2. How can I change the submit button into confirm button, because currently, after I click the submit button it just gives me a message. I want to continue to the next page after I click the confirm button.

    Posted 8 years ago on Friday December 2, 2011 | Permalink
  2. I am struggling badly with trying to achieve point 1 also.

    A simple jQuery solution would be marvelous...

    Posted 8 years ago on Friday December 2, 2011 | Permalink
  3. 1. When the form is submitted the total will be calculated as part of the form action and it's value will be stored as the value of that total field. I'm not sure what you are trying to do, but changing the total using jQuery isn't going to change it when the form is submitted. The total that gets stored is calculated on the server side, not the client side.

    The client side display is to give the user instant feedback but because client side scripts can be manipulated it can't be trusted and that is why the total is recalculated as part of the form processing on the server.

    2. Gravity Forms currently has no confirmation functionality. So what you want to do where you have a confirmation screen before they actually submit the form itself isn't currently possible with the existing feature set.

    A confirmation step is a feature we plan on adding, however it's much more complex than it sounds. We frequently get asked why we don't just add this feature or that, but we have to think it through from many different angles.

    Because forms can be extremely large, consisting of multiple pages of fields, we need to take that into account with how we present the confirmation for such a form. It is a feature we plan on adding but only after we tackle the issues we are aware of and can implement it in such a way that it brings true value to a variety of use cases.

    Posted 8 years ago on Friday December 2, 2011 | Permalink
  4. ok I got it.. but how can I add an action on the submit button, What I want is when I click the submit button I want my Phone's price subtracted by the "total" of my evalution form.. for example:
    let's say the price of my iPhone 4s is $25.00

    price_of_phone - total_of_the_evaluation = new_price_of_phone

    and I also want my submit button to redirect me on the next page.

    Posted 8 years ago on Saturday December 3, 2011 | Permalink
  5. You've lost me a bit on the description. Is this a Single Page Form or a Multi-Page Form?

    Because you refer to the Submit button but then you refer to "redirect me" on the next page. I'm not quite sure what exactly you are trying to do. If you can explain the use case and what exactly you are trying to implement that would help is in providing guidance on how to do what you are trying to do.

    The submit button has a hook associated with it that you can use to change it. It is documented here:

    http://www.gravityhelp.com/documentation/page/Gform_submit_button

    If you are trying to implement some sort of discount based on something that happens on the form, you ay want to take a look at this tutorial:

    http://www.gravityhelp.com/documentation/page/Gravity_Forms_Pricing:_Adding_Tax

    That tutorial is not for what you are trying to do, however it does show how to add additional pricing to the order using custom code.

    Posted 8 years ago on Saturday December 3, 2011 | Permalink
  6. thanks

    Posted 8 years ago on Saturday December 3, 2011 | Permalink

This topic has been resolved and has been closed to new replies.