The Auto-Select Input component is a quality-of-life UI wrapper designed to mimic the best behavior of desktop applications where text fields automatically select their content on focus. This component eliminates the tedious and error-prone process of manually selecting text before typing to overwrite the existing value.
By simply wrapping any standard OutSystems Input widget, this component activates a small piece of client-side JavaScript (using the native select() method) that triggers the full text selection whenever the input receives focus (via mouse click or keyboard tabbing).
Key Features & Benefits:
How to Use:
The component is extremely easy to implement and integrate into any Reactive Web or Mobile application:
That's it! When the screen loads, the wrapper initializes the client-side logic. The next time a user clicks the input, the text will be automatically selected.