Masked input decimal places

  • Profile Image
    shaadmin
    Asked on November 02, 2021 at 08:35 AM

    Hi Team,


    I need solution to enter integer number followed by 2 decimal places in my JotForm.

    I already tried using Masked input widget control where it behaves differently the decimal places where entered first then the integer follows.

    Can you please anyone help me on this ? or how to accomplish this ?


    Thanks
    CME

  • Profile Image
    Richie_P
    Answered on November 02, 2021 at 09:29 AM

    Hello, your requirements should be possible with the masked input widget.

    Kindly make sure you add your Decimal separator.

    firefox_Geo3JwIH4K.png

    Please give it a try and let us know how it goes.

  • Profile Image
    Richie_P
    Answered on November 02, 2021 at 09:31 AM

    Hello, your requirements should be possible with the masked input widget.

    Kindly make sure you add your Decimal separator.

    firefox_Geo3JwIH4K.png

    Please give it a try and let us know how it goes.

  • Profile Image
    shaadmin
    Answered on November 08, 2021 at 03:54 AM

    Hi Richie

    I am already using Masked input widget control to accomplish this, also I have modified settings decimal separator as you suggested, added (.) in it. Still I am getting the same like whatever number entering only decimal places filled up then the actual integers coming up.

    Here, I am entering 1,2,3,4 numbers it got changed 1.234 (3 decimal precision settings).

    1636361655_6188e5b75af88_masked_input_1.1636361655_6188e5b7724e1_masked_input_2.1636361655_6188e5b75be2f_masked_input_3.

    I need 1234.000 followed by decimal points.

    Thanks

    CME

  • Profile Image
    Richie_P
    Answered on November 08, 2021 at 05:21 AM

    I have tested your form https://www.jotform.com/211524423438450 and it seems the masked input is showing correctly at my end.

    firefox_qi46ZMNTdA.png

    May we know the form URL you're working on?

    Looking forward for your response.

  • Profile Image
    shaadmin
    Answered on November 08, 2021 at 05:37 AM

    Hi Richie

    Yes it will work, but i want the digits to be added like 123.00 not like 01.23. The decimal places first filled up while we entering then later integer value takes up. This is default behaviour of Masked input widget control ? Please confirm.


    Thanks

    CME


  • Profile Image
    Richie_P
    Answered on November 08, 2021 at 07:18 AM

    The mask input value would get the decimal places first before the main value.

    This is the expected behavior of the masked input widget.

    6VQKhad1aJ.gif

    If you have further questions, let us know.

  • Profile Image
    shaadmin
    Answered on November 08, 2021 at 09:34 AM

    Hi Richie,


    yes correct!. Is there any workaround for decimal places to be in place where the integer number followed by decimal places.. ?


    Thanks

    CME

  • Profile Image
    Bojan_J
    Answered on November 08, 2021 at 10:05 AM

    Greetings.

    Unfortunately, this is not possible when using this widget. You need to add zeros at the end since this field is populated from the right.

    Let us know if you have any additional questions.