Forum Discussion
Is it possible to lock/disable text entry on revisit?
I normally use a single line of JavaScript to ensure that the data entry field is disabled after a specific event, and a custom variable to track the number of attempts. In the attached demo, the data entry field is disabled when the user hits ENTER and the number of attempts is 0. The Incorrect layer will continue to show as long as the number of attempts is greater than 0. The data entry field is also disabled when the user hits ENTER and the data entry field is equal to "Start." Additionally, it should be disabled when the learner revisits the slide if the data entry field is equal to "Start" when the timeline starts. I am not sure what your next course of action is when the data entry field is disabled and no more attempts remain. See the attached demo and let me know if this is close to what you are looking for, so I can upload my .story file for you to review.
- MrXYZ6 months agoCommunity Member
Thank you sir @Nedim Ramic, the demo which you provided is also one of the solution which I am looking for. It would be really helpful if you provide the .story file.
- Nedim6 months agoCommunity Member
Attached. Edited part is in Scene 2.