How can I add a $ to my calculation and force 2 decimal places to be shown

  • MEM2017
    Asked on April 3, 2017 at 12:25 PM

    Hello,

    at the bottom of the form we have a form calculation which totals the guest tickets and admin fee, however, it is not showing two decimal places.  how do I correct this?

    Can we also have dollar symbols added in front of all form caculations?

     

    In the Dynamic Textbox I need to limit the number of guests they can add to 16.  How do I do this?  

    Thanks again,

    Lori

  • David JotForm Support
    Replied on April 3, 2017 at 2:20 PM

    To add a dollar sign to the beginning of the value in a calculation field, simply add the dollar sign before your equation:

    How can I add a $ to my calculation and force 2 decimal places to be shown Image 1 Screenshot 40

    It will append the symbol to the beginning of the value.

    To show empty decimal places, you click "..." under the number pad to open more options:

    How can I add a $ to my calculation and force 2 decimal places to be shown Image 2 Screenshot 51

    Under the "Options" tab, enable "Show empty decimal places" to show decimals even if the value is 0:

    How can I add a $ to my calculation and force 2 decimal places to be shown Image 3 Screenshot 62

    You can also choose the number of decimal places to be shown.

    As for the dynamic text box widget, it is not currently possible to limit the number of text boxes added, however, you can use the number of textboxes added by the user in conditional statements.  This could be used to hide the submit button or show a text field with a warning message if the number of boxes added is greater than a certain amount.