Input Number Minimum Value as Decimal - Error

Hi Wix Code

Can we set the min or max of input number to decimal? I was doing like this;

export function input1_onChange() {
$w(‘#input1’).min = .10;
$w(‘#input1’).max = .99;

somehow it says “The nearest valid value is 0.1.”
Note that input type is “NUMBER”.

Please advice or this maybe a bug.


Hi DA!

You can achieve your goal using Regex (Regular Expressions).
In our platform you can also set a pattern for input fields, simply go to the input settings, scroll to the bottom and add a pattern of validation.

Hope that helps!