Create def for limiting textinput to one digit, working on one field.