Forum Discussion
Text Entry fields not setting when control loses focus in mobile devices (Storyline 360)
Hi All,
I have a work around for the issue above.
Add an Execute JavaScript trigger to your Submit button (before all other Submit button triggers fire) and run the following JS:
document.activeElement.blur();
This will remove the focus from the active text entry field (closing the mobile keyboard) and therefore commit the text entry to the associated variable prior to the Submit button assessing correct/incorrect.
- StephanieSam1958 years agoCommunity Member
Im also experiencing the same issue using SL 360. Never had this problem before.
Unfortuantely JS doesnt work :(
- ThomasBleije6618 years agoCommunity Member
Thanks!
- aaronkapala-97b7 years agoCommunity Member
Hi All,
This still seems to be an ongoing issues, I am on a trial version of Storyline 360 as we use Storyline 3 and there is an issue with Text Entry boxes not working correctly on mobile devices so this was the only way I could get my product out for testing at the time.
I have been pulling my hair out trying to get them to record correctly without closing down the Keyboard and using the JavaScript line Matthew has mentioned has done the job - so thank you for your post, this has really saved us.Hopefully this could be sorted soon but also hopefully the updates in Storyline 360 can be replicated in SL3 so that the text entry boxes work correctly on mobile devices.
- Crystal-Horn7 years agoStaff
Thanks for checking in, Aaron. We have this issue open, and we've updated our notes with this information:
On a mobile device, clicking submit directly after entering the text or numeric entry is not allowing the focus to change from the entry field. When the focus doesn't change, the trigger to adjust the entry variable doesn't fire, and the question is evaluated incorrectly.
We are still looking at this behavior, and we'll let you know here about any changes that are released!
- TimoRaaska-26917 years agoCommunity Member
You guys are not so fast....
- DavidYip6 years agoCommunity Member
Hi Matthew,
This was really helpful.
On thing I noticed is once the JS code is triggered, if the user comes back, let's sey they want to change their answer, the keyboard doesn't appear anymore as the code "document.activeElement.blur()" has removed the focus from the active text entry field.
Do you think there is a way to reverse that when users go back to previous slides to change their answers using the same text entry field?
- AndreyFedore0305 years agoCommunity Member
This solution worked! Thanks!
"Add an Execute JavaScript trigger to your Submit button (before all other Submit button triggers fire) and run the following JS:
document.activeElement.blur();
This will remove the focus from the active text entry field (closing the mobile keyboard) and therefore commit the text entry to the associated variable prior to the Submit button assessing correct/incorrect."
Matthew Jevons
Related Content
- 10 months ago
- 10 months ago
- 11 months ago