Change focus from one text entry field to another
March 20, 2019
Change focus from one text entry field to another
March 20, 2019
Newbie 1 posts
Followers: 0 people

Captivate 19

I have three text entry fields on on screen and want to evaluate all three from one button.

That part works fine.

The problem is giving users a 2nd chance to make corrections.

The focus automatically jumps back to the first field. You click anywhere – in one of the other fields – and before you can type in it, the cursor jumps back to the first field.

I’ve tried forcing the focus using this javascript code, but it does not do anything.

var elem = document.getElementbyId(“element-name-in-the-slide”);

$(elem).focus();

Tab order does nothing – it just jumps back to the first item – even if the 3rd item is first in the tab order.

All Comments
Sort by:  Most Recent
May 4, 2020
May 4, 2020

Jeff, I would guess by now you have solved this issue but there is a capitalization issue in your function. It should be getElementById. You have a lowercase b.

Like
()
Mar 21, 2019
Mar 21, 2019

DO you want to clear the TEB’s? It is one of the use cases I treated in this presentation:

http://www.lilybiri.com/published/TimelineBlog/index.html

Like
(2)
(2)
Mar 22, 2019
Mar 22, 2019
>
Lieve Weymeis
's comment

That did it! Thanks

Like
(1)
Mar 22, 2019
Mar 22, 2019
>
jeffreys73208728
's comment

Great!

Like
(1)
Mar 21, 2019
Mar 21, 2019

Not really – I am not keeping a score, just want the user to know correct or incorrect

Like
(1)