Create a total due field with dollar sign, decimal, and commas

  • Susan Kass
    Asked on January 25, 2023 at 6:51 PM

    I'm creating a payment registration form. I have amounts in both a product list box and in a multiple choice properties box. I figured out all the conditional elements so that everything totals correctly. I have the combined totals showing up in a basic number box labeled Total Due but I don't see a way to add a dollar sign, comma or decimals so the total due shows up as a dollar amount rather than just a 4-digit number. Is there a code I can use to do that and where would it go? Not tech savvy here at all. Thank you.

  • Billy JotForm Support
    Replied on January 26, 2023 at 12:52 AM

    Hello Susan,

    Thank you for reaching out to Jotform Support. I understand what you want to do. We can use the Form Calculation widget to hold the value of the Total Due field and prepend the dollar sign. Another thing to note is that this widget cannot add commas like the total value shown in the Product List widget:

    1674711635 63d21253769f0  Screenshot 10

    Would this work for you? If so, it's easy to set up. Let me show you how:

    1674712230 63d214a62ddae  Screenshot 21

    Result:

    1674712238 63d214ae9c967  Screenshot 32

    If not, I highly recommend that you put all options that are included in the calculation in the Product List widget.

    Reach out again if you need any other help.