Is it possible to reset numeric entry fields to their initial blank states?

Jul 25, 2017

Hi, I've built an inventorying interaction in which learners are asked to "inventory" a set of compressed gas cylinders (this is for a gas safety course). For each cylinder, they have to identify its contents (that is, what gas does it contain) and pressure (at what pressure is the gas stored in the cylinder). I provide a text entry field for them to enter the name of the gas, and a numeric entry field for them to enter the pressure.

When they've worked through all the cylinders in the set, they click Submit for feedback about how they did. At that point I also provide a Try Again button in case they didn't do as well as they'd like and want to start over and do the inventory again.

The Try Again button has triggers attached to it which attempt to reset the various text entry and numeric entry fields by resetting the variables associated with them. This works fine for the text entry fields, but the only values assignable to numeric entry fields are numbers. Yet, when learners first encounter these fields, they have no numbers in them--they are just blank fields. How can I reset these fields to their initial blank states? I tried setting their associated variables to zero, but then they show up with the zero in the field and I want the field to be blank. Is there a way to accomplish this? The last trigger on the Try Again button is a jump to the current slide, which is set to "Reset to initial state" when revisiting. 

Thanks!

    -Ray

 

3 Replies
Ray Cole

Hi Alyssa, thanks for that link! I may try it, but I'm not sure if I want to go down the custom Javascript road since doing so means losing the ability to cleanly preview the course. I will have to think about whether that is something I want to do.

It might be easier to change the numeric entry fields to text entry fields, which I can reset to an empty state. The only problem is that entry wouldn't be restricted to numbers, so I would have to do some extra checking to make sure the course knows if the answer is correct or not (e.g., if the correct answer is "8" I may also need to check for "eight"; if the answer is 6000, I may also need to check for "six thousand" and "6K"). 

I guess it becomes a feature request, but it would be nice if the numeric entry fields had a way to reset them to their initial blank states from with Storyline.

Cheers!

    -Ray

This discussion is closed. You can start a new discussion or contact Articulate Support.