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

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.

6 Comments
2020-05-04 16:13:12
2020-05-04 16:13:12

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
()
2019-03-21 13:06:52
2019-03-21 13:06:52

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)
>
Lieve Weymeis
's comment
2019-03-22 20:53:28
2019-03-22 20:53:28
>
Lieve Weymeis
's comment

That did it! Thanks

Like
(1)
>
jeffreys73208728
's comment
2019-03-22 21:11:47
2019-03-22 21:11:47
>
jeffreys73208728
's comment

Great!

Like
(1)
2019-03-21 13:04:10
2019-03-21 13:04:10

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

Like
(1)
2019-03-21 08:32:51
2019-03-21 08:32:51

TEB can be tricky, especially for HTML output. I often use micro-navigation to clear the TEB’s for a second attempt, but don’t know in detail  what your goal is: do you need the scoring option?

Like
(1)
Add Comment