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.

Formating calculated number fields

  1. survival774
    Member

    I use a number field for calculating tax. This works fine, but is it possible to format the number like in "total"?:

    1. How can I write something (in this case "€") after the calculated number?

    2. I adjusted to round to two decimal places. It works, but if the last is zero it shows only one. Can I change this to show always two decimal places?

    Now it looks like this:

    included tax in €:
    3.6

    What I want is that it looks like this:

    included tax:
    3.60 €

    Posted 11 years ago on Wednesday July 4, 2012 | Permalink
  2. Can you provide a link to your site with the form in use please? Thank you.

    Posted 11 years ago on Wednesday July 4, 2012 | Permalink
  3. survival774
    Member

    link deleted

    Posted 11 years ago on Wednesday July 4, 2012 | Permalink
  4. David Peralty

    survival774 - I just created a function to force two decimal places at all times for another person, have a read here:

    http://www.gravityhelp.com/forums/topic/unable-to-use-comma-in-number-field-range?replies=2#post-64714

    Of course this is only what will show in the database and notifications and not on the front end. You would need JavaScript to force two decimal places on the front end.

    Posted 11 years ago on Wednesday July 4, 2012 | Permalink
  5. survival774
    Member

    Thank you for your info, David.
    I need only the frontend. Probably my second wish with the added "€" will also only work with JavScript. Sadly I have no idea oft it.
    It´s a pity, but if there ist no other way I can life with my actual formatting.

    Posted 11 years ago on Wednesday July 4, 2012 | Permalink
  6. David Peralty

    Sorry, JavaScript is not my specialty, and as such, you will most likely have to wait until tomorrow for a response regarding this issue.

    Posted 11 years ago on Wednesday July 4, 2012 | Permalink
  7. survival774
    Member

    No problem. I will wait patienlty.
    By the way: I am very excited with Gravity-Forms. For a new german law, starting in August, I have to create a completely new order form. And with GF I am able to implement all the specifications!

    Posted 11 years ago on Wednesday July 4, 2012 | Permalink