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.

Pass Total or Calculation field without $ sign

  1. My client uses Google Wallet and I have a form setup to pass a dollar amount where the user can decide if they want to mail a check or continue on to Google Wallet to pay. I can pass a product price via the url and then insert that into the Google form. But what I would like to do is use either the Total field or if that doesn't work a Calculation fied that is basically just totaling the products. Everything I've tried includes a $ sign and that causes an error when you submit to Google.

    Basically appending the product price to the url like {field name:FieldID:price} works because the $ isn't included. I'd like to to get the Total for all the products similarly without the $ sign.

    Posted 12 years ago on Wednesday December 19, 2012 | Permalink
  2. Actually my second idea to use a Calculation field wouldn't work too well. Even if I got the price to the Google form the email summarizing the order would be wrong.

    Posted 12 years ago on Wednesday December 19, 2012 | Permalink
  3. Please see this solution for removing the dollar sign before you redirect the user:
    http://www.gravityhelp.com/forums/topic/remove-from-total-field#post-83399

    Posted 12 years ago on Thursday December 20, 2012 | Permalink
  4. Thanks that looks like it will do the trick. I'm assuming this would go in the functions.php file correct?

    Posted 12 years ago on Thursday December 20, 2012 | Permalink
  5. Yes, that code will go in your theme's functions.php. Let us know if you need help with implementation.

    Posted 12 years ago on Thursday December 20, 2012 | Permalink
  6. Hello all, I have the same problem, I need to pass the total amount without the dollar sign. I'm integrating to moneris using a GET string and passing the total amount via query string. I've read all the posts related to this issue and it seems that the suggested solutions fixe the problem but I'm not sure how to do what you are recommending. Can you please be a little more specific with the instructions to do this, like explaining what file needs to be modified and where the code should be placed. Thanks a lot...

    Posted 12 years ago on Monday December 24, 2012 | Permalink
  7. David Peralty

    This is a customization, and as such, you'll want to have an intermediate level of PHP to be able to create and troubleshoot. Otherwise, you might want to hire a developer that can do this for you.

    All modifications using our hooks or filters system should be done in your theme's functions.php file. All my best!

    Posted 12 years ago on Monday December 24, 2012 | Permalink
  8. Thanks David for your response. I have a good understanding of php and coding in general and I can't afford a developer that's why I bought this gravity forms thinking that it was going to be easier to integrate. I would be able to do it myself with a little help if you guys don't mind.
    I know the modifications should be done in the theme's function.php. What I need to clarify is; Do I need to also add the {fieldname:price} to the merge tag that Chris recommended, or these are two different ways to solve this issue?

    Thanks again!

    Posted 11 years ago on Thursday December 27, 2012 | Permalink
  9. @grumpy pixels, I am going to close this topic and we will focus your support on the other topic you have open here: http://www.gravityhelp.com/forums/topic/remove-from-total-field#post-109100

    Posted 11 years ago on Thursday December 27, 2012 | Permalink

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