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

  • Profile Image
    GRRRACE
    Asked on March 09, 2018 at 01: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



    This is a re-post of a comment on How to Set Up the Configurable List Widget

  • Profile Image
    amy
    Answered on March 09, 2018 at 07: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

    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.gif

    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.