How to display negative numbers in the Number field?

  • lemundibu
    Asked on August 8, 2019 at 6:15 AM

    Hello, 


    Their is a bug on my form : 


    The error message is over the number input field. 

    So it's impossible to write an other number and continue the form. 


    Please find a screen capture

    Jotform Thread 1920053 Screenshot
  • roneet
    Replied on August 8, 2019 at 8:00 AM

    Currently, you have set a limit of 0 on the Number field. If you want to be able to enter negative values too then you can remove the 0 from the limit option:

    How to display negative numbers in the Number field? Image 10

    Hope this helps!

    Thanks.

  • lemundibu
    Replied on August 9, 2019 at 2:43 AM
    Hello,
    no, I don't want to allow negative numbers, that's why I set the minimum to
    zero.
    My problem is when a user puts a negative number, the error message that
    appears in red is displayed *above *the input field and therefore, the user
    cannot change it
    Le jeu. 8 août 2019 à 14:00, JotForm a écrit :
    ...
  • jherwin
    Replied on August 9, 2019 at 5:14 AM

    We can adjust the using CSS code, please try to inject custom CSS code below into your form:

    .form-error-message {
        top: -40px!important;   
    }

    Guide: How-to-Inject-Custom-CSS-Codes

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

  • lemundibu
    Replied on August 9, 2019 at 1:43 PM
    thank you, this is working
    Le ven. 9 août 2019 à 11:14, JotForm a écrit :
    ...