How can I hide the spinner on the Configurable List widget?

  • Profile Image
    ARWFashion
    Asked on May 15, 2017 at 06:28 AM

    Hello, 

     

    For me it's not possible to turn off the scroll of the number fields in the configurable list. 

     

  • Profile Image
    cem
    Answered on May 15, 2017 at 06:34 AM

    Hey ARWFashion,

    Can you try to inject css with the code I have written at below? 

    input[type=number]::-webkit-inner-spin-button, 

    input[type=number]::-webkit-outer-spin-button { 

      -webkit-appearance: none; 

      margin: 0; 

    }

    Thanks for writing us.

    Have a nice day.

  • Profile Image
    elkethone
    Answered on May 15, 2017 at 08:40 AM

    Hi Cem, 

    This solution doesn't work. As you can see there seems to be a problem in the CSS. 

     

  • Profile Image
    Jim_R
    Answered on May 15, 2017 at 09:11 AM

    Can you please try it again using these codes:

    .stepper-wrap {

       margin-right: 0 !important;

    }

    .stepper-btn-wrap {

       display: none !important;

    }

    Complete guide: How-to-Inject-CSS-Codes-to-Widgets

    Result:

  • Profile Image
    ARWFashion
    Answered on May 15, 2017 at 10:09 AM

    When your cursor is on a number field (not the focus on this field), just hold cursor at this field and you scroll, the number displayed will still change

  • Profile Image
    amy
    Answered on May 15, 2017 at 10:57 AM

    Hi,

    Please try to add text box instead of the current one. You cannot turn off this function totally by using CSS. Only applying CSS won't be sufficient for this request. 

    Thank you.

     

  • Profile Image
    ARWFashion
    Answered on May 16, 2017 at 01:35 AM

    If I change the type to text instead of number, the user is allowed to insert also non-numeric characters, and this is not allowed. 

    Do you have another suggestion? 

    Thx, 

    Elke

  • Profile Image
    BJoanna
    Answered on May 16, 2017 at 02:52 AM

    I can only suggest you to embed your form to the webpage using full source code and to add custom script to your webpage that will disable scroll function of the mouse, when your cursor is on a number field. 

    How to get the Full Source Code of your Form

    Let us know if you need further assistance.

  • Profile Image
    BJoanna
    Answered on May 16, 2017 at 03:37 AM

    I found a workaround within a JotForm. 

    You can use step option for number filed of configurable list widget. You can set step option to 0. This way number will not be changed with scroll function of the mouse, when your cursor is on a number field. 

    Label: number : Hint Text : step

    You should set your number field inside of Configurable list like this. 

    Here is my demo form: https://form.jotformpro.com/71351471571958 

    Feel free to test it and clone it

    Hope this will help. Let us know if you need further assistance.