Add “Max Length” Property to Number Input Widget in OutSystems
115
Views
3
Comments
New
OutSystems UI

Currently, when using an Input widget with Type = Number, it is not possible to set a Max Length for the field. This forces developers to switch the input type to Text and implement additional JavaScript, masks, or custom validations just to control the number of digits — which increases complexity, reduces maintainability, and removes the native numeric keyboard on mobile.

Adding a Max Length property (similar to text inputs) would allow developers to:

  • Prevent users from entering more digits than required

  • Avoid using JavaScript workarounds

  • Keep the input type as Number

  • Improve UI validation consistency

  • Increase development speed

This enhancement would significantly reduce unnecessary logic and provide more control over numeric inputs without losing native browser behavior

I do face the same issue when trying to limit max length of characters or apply some form of custom validation on inputs of type "number".

I think it is an unnecessary hustle, and if added to OutSystems, shall save a lot of time and effort for the developers.

This would save a ton of time! Especially for list inputs since we can’t use masking components to restrict them. Upvote from me 👍

This appears to be a flaw in HTML / Chrome rather than an oversight in OutSystems.

You can add the maxlength parameter to the input easy enough, but it just gets ignored.

In reactive you could potentially use the input in text mode and set the pattern to only except a certain number of digits? pattern="\d\d\d" for three?