enter key perform like a tab, thru fields?

Use this board to ask questions or have discussions with other Rich Displays users.
Paul
Profound User
Posts: 39
Joined: Mon Aug 29, 2011 10:53 pm
First Name: Paul
Last Name: Foster
Company Name: GRI Group Ltd
Country: Hong Kong
Location: Hong Kong
Contact:

Re: enter key perform like a tab, thru fields?

Post by Paul »

Scott, Eric,

Excellent, just what I was looking for.

Thanks!
Paul
pjshuey
Experienced User
Posts: 119
Joined: Wed May 25, 2016 11:58 am
First Name: Patti
Last Name: Shuey
Company Name: Conestoga Wood Specialties
Phone: 7174452886
Address 1: 645 Reading Road
City: East Earl
State / Province: Pennsylvania
Zip / Postal Code: 17519
Country: United States
Contact:

Re: enter key perform like a tab, thru fields?

Post by pjshuey »

Scott,

I save your comment above "How would you like to proceed? Should I look into making a pui.gotoNextElement() and pui.gotoPreviousElement() API to make this work better? (We have something like this already under the covers in PUI. With a little bit of work, I could make it accessible to customers like yourself.)". Did you ever do anything with this? I am trying to simulate a tab key in a javascript function and am struggling. If you could help, I would really appreciate it!

Patti
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: enter key perform like a tab, thru fields?

Post by Scott Klement »

mrssmitty15 never replied to the question about that (this was more than 4 years ago) so I never did anything.
pjshuey
Experienced User
Posts: 119
Joined: Wed May 25, 2016 11:58 am
First Name: Patti
Last Name: Shuey
Company Name: Conestoga Wood Specialties
Phone: 7174452886
Address 1: 645 Reading Road
City: East Earl
State / Province: Pennsylvania
Zip / Postal Code: 17519
Country: United States
Contact:

Re: enter key perform like a tab, thru fields?

Post by pjshuey »

I saw she didn't reply. Is this something that can be done? If you point me in the right direction, I can probably figure it out. I was thinking of using querySelectorAll to get all input fields on the screen. I haven't figured out exactly how to use that information yet.
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: enter key perform like a tab, thru fields?

Post by Scott Klement »

pjshuey wrote:I saw she didn't reply. Is this something that can be done? If you point me in the right direction, I can probably figure it out. I was thinking of using querySelectorAll to get all input fields on the screen. I haven't figured out exactly how to use that information yet.
I'm not quite following you, here. What do you need me to point you in the direction of?

If you're asking for the pui.gotoNextElement() and pui.gotoPreviousElement() APIs to be created as I suggested 4 years ago, then the best way to do that is to e-mail support@profoundlogic.com and place a feature request for those.
pjshuey
Experienced User
Posts: 119
Joined: Wed May 25, 2016 11:58 am
First Name: Patti
Last Name: Shuey
Company Name: Conestoga Wood Specialties
Phone: 7174452886
Address 1: 645 Reading Road
City: East Earl
State / Province: Pennsylvania
Zip / Postal Code: 17519
Country: United States
Contact:

Re: enter key perform like a tab, thru fields?

Post by pjshuey »

I was asking for some tips on how to do it myself, but I will email support asking for the functions you mentioned. I think they could be useful for other people as well. 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: enter key perform like a tab, thru fields?

Post by Scott Klement »

If you wanted to do it yourself, you'd get an array of the fields on the screen (using something like querySelectorAll would help you do that.) Then you'd locate the field you are in, and determine which field comes after it. Then set focus on that next field.

You could have sophisticated code to control the sequence of the fields, et al. You'd also have to do stuff like skip fields that are hidden or protected.
Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests