Ah sorry my fault. You have to change the data type of the widget into Integer if you want to use the frontend validation. Of course you have to change your widget logic as well e.g. formatting, but this depends on your widget.
Enter the destination URL
Or link to existing content