Perspective TextField SelectAll OnFocus

How can I make sure all text is selected in a TextField when it gets focus, no matter how it gets it (click, touch, tab, Focus() script).

I have tried to put a “self.selectAll()” script on the TextField.Focus event but it does not work.

2 Likes

We’re having a similar issue. Anyone know how to do this?

The answer I received is that it can only be done using Javascript on client side.
Since python scripts are only for server side, I don’t think there is a way to do that at the moment.
It might be good feature request to add a new property “SelectAllOnEnter” on textfield that will execute the javascript to select the text.

1 Like