Forcing Text Entry field selection on slide display. Nov 22, 2022 By Jacob Stewart I'm trying to put the focus on a text entry object so that the learner does not have to click on the field. I've changed the tab order of the field to the top position, and when the learner clicks tab, the cursor is placed in the selected text entry field. Is there a way to make the text entry field "pre-selected" either through trigger or another slide configuration?
Sandeep Gadam over 1 year ago11/23/22 at 9:59 am (UTC) Hi Jacob Stewart, you can achieve this by using the following Executive JavaScript code: document.querySelectorAll('.acc-textinput')[0].focus();
Susanne Oosterveen Sandeep Gadam over 1 year ago12/02/22 at 3:18 pm (UTC) Thanks @sandeep , I had the same question and this works!
2 Replies
Hi Jacob Stewart, you can achieve this by using the following Executive JavaScript code: document.querySelectorAll('.acc-textinput')[0].focus();
Thanks @sandeep , I had the same question and this works!