Clear numeric entry boxes / reset numeric variables - Storyline 360

Feb 09, 2023

I have created an exercise where the learner need to fill in three numeric entry boxes. If they don't answer correctly I want to clear the boxes when they are to retry the excercise. However I cant understand how I can set the numeric variables to blank. If I set them to "0" then 0 is displayed in the entry boxes. I think the only solution would be to use javascript?

Would anyone be able to provide me with what code to use? :)

5 Replies
Walt Hamilton

JS returns text content to SL variables. "" is text, so you get "NaN (Not a Number").

If the variables are set to a default value of blank, when you revisit the slide, the entry boxes should be blank if the slide is set to return to initial state on revisit. You may need to set the variables to 0, but I don't think so.