Configurable List: How to disable negative numbers in the number field

  • GRRRACE
    Asked on March 9, 2018 at 1:28 AM

    Hello,

    How do I configure a dropdown option of numbers to only have positive numbers? Currently my form has -1, -2, -3, etc as options and I would like to eliminate that. This is my field configuration box:

    WW Item Code : text : e.g. 131057

    Item Description : textarea : e.g. WW Estate Pinot Noir

    Vintage : text : e.g. 2016 or NV

    Case/Pack + Size : text : e.g. 12/750ml

    Number Bottles OC : number : # of Bottles

    Number Bottles SF : number : # of Bottles

    Number Bottles SD : number : # of Bottles

  • amy
    Replied on March 9, 2018 at 7:38 AM

    You need to add this expression, after the hint text of the number field.

    : step value, minimum number value, maximum number value

    For example: Number Bottles LA : number : # of Bottles : 1, 0, 1000

    step - can be a floating number (with decimal)

    min - can be a floating or negative number

    max - can be a floating or negative number

    You can use 0 for min option to allow only positive figures.

    Please go to the settings of the configurable list widget and apply these changes. You can change the value according to your own preference. 

    1520598835Screen Shot 2018 03 09 at 15 2 Screenshot 10

    Here is my demo form:

    https://form.jotform.com/80673515323959

    Feel free to clone it on your end: How to Clone an Existing Form from a URL

    Here is my result:

    1520598914configurable list Screenshot 21

    PS: If you cannot see any differences please don't forget to clear your browser's cache after this change. Also, please consider clearing your form's cache.