Constrain Text input into Field to "Boundaries"

Idea created by alexis_gehrt on Dec 16, 2016
    Active
    Score7
    • Benjamin Fehr
    • alexis_gehrt
    • goodgirl
    • dylan_hudson
    • Chris Irvine
    • jbante
    • SteveNoble

    If a text field has no scroll bar in Inspector set, I'd wish to limit the user to input only as much text as the field boundaries allow.

    There is a technique that grabs the "objects" size prior and after commit and I could figure out if the text would overflow and text would be cut from visibility. BUT this is quite some work for each field.

     

    In Inspector, I'd call the Checkbox "Constrain Text input to field boundaries". (Only available if there is no scroll bar.. Otherwise it does not make sense... )

     

    Using this feature, I could limit the user not to input more than two lines and not "mess" up the print output by inputting tons of text.