How do I include data with decimals with number field?

  • Soargui
    Asked on April 21, 2019 at 8:39 PM

    Good night.
    In my form 

    https://form.jotformz.com/Soargui/abril---2019,

    I use the "number" element to fill data.
    1-How do I include data with decimals.
    2-I need to use "comma" as the decimal separator. How do I do ?
    3-In the form in question the "number" element is the best option, or do you suggest another element?
    thankful
    Geraldo

    Jotform Thread 1799526 Screenshot
  • Kiran Support Team Lead
    Replied on April 22, 2019 at 12:37 AM

    You may enter the number with decimal places using the number field. However, it is only allowed to have the dot as the separator. If you want to use comma as a separator you may consider using Short Text field enabled with Input Mask or Masked Input widget.

    Please give it a try and let us know if you need any further assistance. We will be happy to help. 

  • Soargui
    Replied on April 22, 2019 at 12:43 PM
    Good Morning.
    I have analyzed both suggestions, only the "Masked Input widget" solves my
    case.
    But I do not know how to include this "element" in my form already under
    construction. Can you please guide me?
    Follow my form:
    https://form.jotformz.com/Soargui/abril---2019
    thankful
    Geraldo
    Em seg, 22 de abr de 2019 às 01:37, JotForm escreveu:
    ...
  • Richie JotForm Support
    Replied on April 22, 2019 at 1:56 PM

    I have checked your form and it seems you have successfully added the input mask in your field.

    How do I include data with decimals with number field? Image 1 Screenshot 20

    If you need further assistance, please let us know.

  • Soargui
    Replied on April 22, 2019 at 2:43 PM
    Good afternoon.
    This is true, but that is not what I need, since the answers that will be
    placed in my form can vary: (0.25) (1.25) (11.25) (111.25) or even
    (1.111.25) (for example).
    So I need a solution that accepts all of these responses and "fit" to a
    standard type: x.xxx, xx.
    It seems to me that the "Masked Input widget" solution is the best for my
    case.
    But I was not able to insert in this form (below) this element (Masked
    Input widget).
    I would like you to guide me how to do this insertion.
    Follow my form: https://form.jotformz.com/Soargui/abril---2019
    thankful
    Geraldo
    Em seg, 22 de abr de 2019 às 14:56, JotForm escreveu:
    ...
  • Richie JotForm Support
    Replied on April 22, 2019 at 3:14 PM

    Thank you for the clarification.

    You can add the Masked Input widget in your form via the widget elements.

    How do I include data with decimals with number field? Image 1 Screenshot 30

    May we know how many digits would you like to add in your input?

    In your Masked Input Widget, you may edit the decimal separator and the Thousands Separator.

    Go to your Masked Input Widget>General

    How do I include data with decimals with number field? Image 2 Screenshot 41

    Hope this information helps.

    Please give it a try and let us know if you have further questions.