Page 1 of 1

select value on focus

Posted: Mon Aug 24, 2020 3:44 am
by CAPL_INFO
Hi,

In a mobile screen design context, on a numeric input zone, i want to select the value inside when focus to allow user hit a new value without edit this last.

Do you have any solution ?

Thanks

Re: select value on focus

Posted: Mon Aug 24, 2020 12:32 pm
by Scott Klement
If you want all fields on all screens to be selected when you focus them, you can enable the "highlight on focus" feature explained here:
https://docs.profoundlogic.com/display/ ... t+on+Focus

If you only want one field, or certain fields, to be selected when you put focus on them put the following code in the 'onfocus' event:

Code: Select all

this.select();

Re: select value on focus

Posted: Tue Aug 25, 2020 4:35 am
by CAPL_INFO
Hello,

Thank you for answer.
i tried this. i hoped another solution because weird thing event came with it.