how to add dollar signs to a number field?

  • DarlaWildfang
    Asked on December 18, 2014 at 2:08 PM
  • David JotForm Support
    Replied on December 18, 2014 at 3:34 PM

    Hi,

    This can be added directly to the Update a field calculation:

    https://www.jotform.com/help/268-How-to-Insert-Text-or-Mathematical-Calculation-into-a-field-using-a-Condition

    how to add dollar signs to a number field? Image 1 Screenshot 70

    Which gives:

    how to add dollar signs to a number field? Image 2 Screenshot 81

    You can also add commas as thousands separators, if you like:

    - first click the "..." to access extra functions.

    - The click the comma separator function:

    how to add dollar signs to a number field? Image 3 Screenshot 92

    That will display:

    how to add dollar signs to a number field? Image 4 Screenshot 103

    This would have to be updated for each condition, which is a bit tedious. Unfortunately I don't see a way to do it faster since they're all different.

    - You also probably want to enforce displaying 2 decimal places. This can be done via the advanced settings:

    how to add dollar signs to a number field? Image 5 Screenshot 114

    - one last note. Oftentimes users make calculated fields like Total Cost Read only, since they don't intend users to update them:

    how to add dollar signs to a number field? Image 6 Screenshot 125

    Please let us know if you have any questions, or need help setting this up.