Limit the number of characters in a text field

I need the text field to only allow me to type 5 characters

to stop at the last character if you are trying to type a text that is too long.

This way you can go back and change the content for something shorter that does not exceed 5 characters.


any example?

You don't need a Clock Timer for that.

The text box has a new event block that triggers every time the text box changes.
That gives you a place where you can check the text length and shorten it using the text segment block

if length(textbox.text) > 5 then
  textbox.text = segment(textbox.text,1,5)
1 Like

this seems to me

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.