Validators

Hy,

I’ve noticed that for this example:

    {name:"boundedIntegerRange", title:"integerRange 10-100",
    validators:[
    {type:"integerRange", errorMessage:"Value must be between 10 and 100.", min:10, max:100}
    ]
    }

it should be:

    {name:"boundedIntegerRange", title:"integerRange 10-100", type:"integer",
    validators:[
    {type:"integerRange", errorMessage:"Value must be between 10 and 100.", min:10, max:100}
    ]
    }

If it’s not set type:“integer” for the field validator “intengerRange” does not check if it’s integer. So if I input a letter for example it doesn’t fire any error.

So for the example in SmartClient_65_LGPLzip at smartclientSDK\examples\components\dynamicForm_validators.html
must be reconsidered.

Hope this help somebody,
John

Quite right, thanks, that example has been corrected.