# Perspective TextField SelectAll OnFocus

**URL:** <https://forum.inductiveautomation.com/t/perspective-textfield-selectall-onfocus/45826>\
**Category:** Ignition\
**Tags:** perspective, scripting\
**Created:** [April 20, 2021, 7:45pm UTC](https://forum.inductiveautomation.com/t/perspective-textfield-selectall-onfocus/45826 "2021-04-20T19:45:25Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![francois.morin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/francois.morin/32/15064_2.png) [@francois.morin](https://forum.inductiveautomation.com/u/francois.morin)\
**Post date:** [July 26, 2021, 6:50pm UTC](https://forum.inductiveautomation.com/t/perspective-textfield-selectall-onfocus/45826/3 "2021-07-26T18:50:38Z")

</div>

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.

---

_[View the full topic](https://forum.inductiveautomation.com/t/perspective-textfield-selectall-onfocus/45826)._
