Scripting numeric text field component

You may find this of interest.

@steven.cox, did this end up as your solution?