Download

Editable Text Box auto-selecting text

I have an editable text box that displays an initial number to the user. I want to set the focus on that text box when it is created, then I want to do a “select all” (think CTRL+A) on the text that is displayed so that the user can immediately start typing and replace that number without having to backspace the initial number first. I know there is a “Set Focus” blueprint, but is there a function that can do the “Select All” text right after?

Nothing that I know of, but how about using hint text instead? You can set the initial text on the thing to be hint text that will disappear when the user begins typing.

Actually that’s a good idea. I think I’ll use that.