Is there a way to lock spinner so you can only use the up and down and not enter custom amounts?

  • wcsmith
    Asked on April 29, 2016 at 12:14 PM

    We are running an auction and would like bids to be forced to increase by $5 increments. I would like to lock the text box so that only the up and down arrows are able to be used, and the user cannot enter their own custom amount. Is there a way to do this?

    Jotform Thread 829443 Screenshot
  • Nik_C
    Replied on April 29, 2016 at 1:49 PM

    You can do that by Adding this code below to Custom CSS code:

    #input_5 {

    pointer-events: none; 

    }

    Be mindful that #input_5 is ID of my spinner field. To find out your spinner's ID please follow:

    Is there a way to lock spinner so you can only use the up and down and not enter custom amounts? Image 1 Screenshot 30

    And then you will find the ID in new window:

    Is there a way to lock spinner so you can only use the up and down and not enter custom amounts? Image 2 Screenshot 41

    Please try and let me know if that helps.

    Thank you!

  • wcsmith
    Replied on May 5, 2016 at 4:01 PM

    Thank you so much! This is exactly what I was looking for and it worked perfectly!