Forum Discussion
Shifting focus from one text entry box to another box without pressing tab or any other key
Hi all,
I am working on a form where I have two text entry boxes on a slide to enter the State abbreviation and the City name. How can I limit the first entry box to have just 2 characters and then automatically jumps to the next text entry box, without having to press any key?
Thanks!
- NateCampbell-f3Community Member
Hi Linah. I am currently looking for a similar outcome. I came across a thread here that might help you, though I'm not sure if it does me much good: https://community.articulate.com/discussions/building-better-courses/move-focus-to-next-text-entry-using-javascript
Hopefully this helps.
- LinahTul-Jam454Community Member
Hi Nate. Thanks for the response. I was actually looking for the focus to shift from one text entry box to another after the text input reaches its character limit, in my case State abbreviations. I did not want it to be dependent on any specific key. So, I ended up creating a separate slide for each input box.
I am still struggling with limiting the character limit to two before it loses focus. Currently, I have Javascript in place that loses focus after each character.