When I use a FieldNumber type I can specify a min and max input like this:
new Blockly.FieldNumber(10, 5, 25, 1), 'speed')
If a user enters the number 3 it will set it to a minimum of 5 and if a user enters the number 30 it will set it to a maximum of 25.
Is it possible to do the same for value inputs? If not, does anyone know the best way to manually validate the input and perhaps display a custom alert? I'm just not sure of the best place to do this validation.
Any help would be greatly appreciated.
Thanks.