Masked input decimal places

  • shaadmin
    Asked on November 2, 2021 at 8: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

  • Richie JotForm Support
    Replied on November 2, 2021 at 9:29 AM

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

    Kindly make sure you add your Decimal separator.

    firefox Geo3JwIH4K Screenshot 10

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

  • Richie JotForm Support
    Replied on November 2, 2021 at 9:31 AM

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

    Kindly make sure you add your Decimal separator.

    firefox Geo3JwIH4K Screenshot 10

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

  • shaadmin
    Replied on November 8, 2021 at 3: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 Screenshot 101636361655 6188e5b7724e1 masked input 2 Screenshot 211636361655 6188e5b75be2f masked input 3 Screenshot 32

    I need 1234.000 followed by decimal points.

    Thanks

    CME

  • Richie JotForm Support
    Replied on November 8, 2021 at 5: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 Screenshot 10

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

    Looking forward for your response.

  • shaadmin
    Replied on November 8, 2021 at 5: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


  • Richie JotForm Support
    Replied on November 8, 2021 at 7: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 Screenshot 10

    If you have further questions, let us know.

  • shaadmin
    Replied on November 8, 2021 at 9: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

  • Bojan Support Team Lead
    Replied on November 8, 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.