select value on focus

Use this board to ask questions or have discussions with other Rich Displays users.
Post Reply
CAPL_INFO
Profound User
Posts: 38
Joined: Wed Jul 19, 2017 4:54 am
First Name: Nadine
Last Name: Gauthier
Company Name: CAPL
Country: France
Contact:

select value on focus

Post 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
Scott Klement
Experienced User
Posts: 2711
Joined: Wed Aug 01, 2012 8:58 am
First Name: Scott
Last Name: Klement
Company Name: Profound Logic
City: Milwaukee
State / Province: Wisconsin

Re: select value on focus

Post 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();
CAPL_INFO
Profound User
Posts: 38
Joined: Wed Jul 19, 2017 4:54 am
First Name: Nadine
Last Name: Gauthier
Company Name: CAPL
Country: France
Contact:

Re: select value on focus

Post by CAPL_INFO »

Hello,

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

Who is online

Users browsing this forum: No registered users and 1 guest