Scott, Eric,
Excellent, just what I was looking for.
Thanks!
Paul
enter key perform like a tab, thru fields?
-
- 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:
-
- 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?
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
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
-
- 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?
mrssmitty15 never replied to the question about that (this was more than 4 years ago) so I never did anything.
-
- 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?
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.
-
- 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?
I'm not quite following you, here. What do you need me to point you in the direction of?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.
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.
-
- 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?
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.
-
- 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?
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.
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.
Who is online
Users browsing this forum: gmikos and 1 guest