Dynamic event on click: Select

Hello,

Please implement:

Screenshot

Add a “Select” after “Focus”. The goal is to select all text of the text input

I gave it a vote, but for my own knowledge, what would be a real life use case?

Wappler’s autocomplete form input doesn’t act as a selector, so if I want to type new data I have to erase it first

But, I’ve just realized I could use form reset too :sweat_smile:

On a side-note, the select thingy doesn’t work with Wappler’s autocomplete form input, nor Set Value, so that’s another bug report

Edit: I guess it’s also useful if there’s a field you want people to copy, so it pre-selects the text

Ah, got ya … makes sense now. :wink:

To clear the data from an input field without selecting it first, I change input type to type="search" to display x in the input field. The text can be cleared when x is clicked. This can be another method to delete text / reset a specific input field.

2 Likes