Scripting : Allowed characters in an Edit Control

Since an edit control can be declared as a 'numbers only' type, it might make sense to expand it to allow only certain characters. Eg. if I want numbers that include decimals or negative, I can't choose the 'numbers only' option. Although one can add some extra code to validate the typed character, that would only occur after the character has already been entered and is visible in the control.

This new feature could work by adding an extra property to the control, like allowed_chars, which could accept a regex syntax or something similar.

Thanks.

In the next beta edit controls will support "double" as a type as well as "number", which will allow entering of decimal values.

Note that you can make a number field accept negative values by specifying a negative minimum value.