Forum Discussion
Change Text Entry Variable without control losing focus?
Jillian, you are a life saver. This was also driving me crazy until I came across your post. Thank you so much.
The jQuery didn't work for me for some reason, so I used standard JavaScript. It's below if anyone else needs it.
The '.acc-textinput' is the class name of the text input box in the Storyline module. I'm assuming this is always the same, but if Articulate ever change the name in the future this code won't work.
document.querySelector('.acc-textinput').addEventListener('keyup', () => {
document.querySelector('.acc-textinput').blur();
document.querySelector('.acc-textinput').focus();
});
Hello,
On the offchance anyone in this thread is still following, I can't get any of the examples in this thread to work in Storyline 3.93. I was specifically trying non-JQuery methods, but I don't know if something has changed in the way Storyline references objects that I'm not spotting. I've tried the class name as detailed here and "[data-acc-text='*****']" to get the accessibility name.