What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.

At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.

We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.

  • Profile Image

    How to configure input mask correctly

    Asked by stormingrobots on January 24, 2017 at 02:21 AM

    with $  ####.## : 

    for amount $  520.00

    it shows up as $  520.__

    How can I get to show exactly as $  520.00

  • Profile Image
    JotForm Support

    Answered by Charlie on January 24, 2017 at 03:59 AM

    Is the value after the decimal point fixed to "00"? If it is, then simply add it in the input mask. 

    If the decimal value is fixated to "00", then you can add it in the input mas. If you want to force users to fill out the whole mask, then enable "Fill Mask Validation". 

    You can also try our "Input Mask" widget, here it is: https://widgets.jotform.com/widget/masked_input 

    If I misunderstood your concern, please do provide more details. 

  • Profile Image

    Answered by stormingrobots on March 14, 2017 at 11:57 AM

    - cannot use $####.00; as it will truncate the decimal places. 

    - On a number field, I cannot get it to dollar sign to display.

    - On a text field with currency field set:  it truncate anything  decimal places if  it is given from a calculated field. Eg.    if   condx ,  put   field1 / field2 into final_field   ( e.g. 525/10 into final_field)  . Then final_field will contain only 52, not 52.5.    The mask does not help.

    So, in the end, if I want : 

    - 5001 / 10  .   If I want the decimal places to show up, I have to use Number field.  

    - if I want "$" to show up, I have to use "Text" field.

    - so I guess the conclusion is that if I want : 

     field = $  500.10 , I will have to use Number field.  Then, download the form and edit the "$" in front all input fields which need the $ sign. 


    Am I correct? If not, please let me know the alternative.  

    Also, the Number format widget does not help in this matter either. 



  • Profile Image
    JotForm Support

    Answered by Kevin_G on March 14, 2017 at 01:26 PM

    You could use calculations to get the value and still include the dollar sign, for example, you need to set up the condition like this: 

    You can also set the number of decimals you want in the result by clicking on the calculation settings: 

    The same can be done with the Form Calculation widget, the only difference is that you do not need to calculation to be triggered upon any action.

    You can also set the number  of decimals in the calculated value: 

    Here's the result you will get from both options:

    Hope this helps.