@randyh628 I put together a public example of something similar to what I have implemented in many of my apps:
Demo: Limit Input Value
Editor view: sandboxthings | Bubble Editor
Let me know if you have any questions (or recommendations for further improvement). The design is a bit rough due to being in a rush.