Text Entry and Variables

Oct 11, 2017

Hi Everyone!

I am working on a certification using Articulate Storyline 2 that utilizes Text Entries and a button.  I am trying to prevent the user from clicking on the button (this button will ultimately exit the course and record the training completion) until after they have entered the required information into each text entry box.  The information that will be entered into each box will vary as this will be sent out to multiple learners to input their name and the date they are certifying. 

I am having trouble with figuring out a way to create the if/then logic the will either take the user to another layer telling them that they need to enter in the data in these Text Entries or close the course.

3 Replies
Aaron Marshall

Hi Wendy,

I went through some testing of the course and noticed that I was able to click the next button simply by clicking in the text entry without needing to actually type anything in the text entry box before before hovering on all of the buttons above.  It was only after visiting the buttons above that the text entry box forced me to enter information in the it before being able to move forward.  Is there a way to prevent someone from clicking the next button unless they have actually typed something in the text entry box no matter if I have changed the state of the buttons above?

Wendy Farmer

Hi Aaron

The issue is that SL doesn't valiadate the content of a TE box until control loses focus (ie the user clicks outside of the TE box or clicks a button) which makes it hard to set triggers using the field entry.

The sample above was my clients requirement to not disable the next button but you could try this,

have a popup layer that sends them in a loop. So allow them to click next regardless of whether the field is completed, if the validation of the TE is correct ie. they entered something then clicked the Agrree button - good. If not and they click next the layer displays with a message you must enter your name and click the Agree button before proceeding. They soon get the idea they can't proceed until these actions are done. 

If you can share the slide and how you have it setup now I'll try and help you. 

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