Validating Text Entry Field

May 30, 2014

Hello Articulate Community,

I have a slide where I have a text entry field for a username associated with variable name.   The default value is "Please enter your name".    Is it possible that when the user clicks the submit button (that comes with Storyline) it checks to see if the value is still the same (Please enter your name) and if it is then show a layer that says "You forgot to enter your name".    If you have any ideas or know of any existing posts on this topic it would be greatly appreciated.  Thank you.

6 Replies
Christine Hendrickson

Hi Leyhton,

By default, the value of a text variable is blank. Now, the text field will have text similar to "Enter your text here..", etc. This doesn't mean that it's the value of the variable, unless you've set this up manually to be the initial value. 

What you could do is trigger the layer to show when the value of the variable is blank, or when the value is "Please enter your name" when the user clicks "Submit".

Here's an example of how you could set up this layer:

You can do the same with the "Submit" button, when you want the learner to advance or if you want to show them a "Thanks!" layer. You'd use the same type of trigger, but this time, the condition would be set to "Not equal to" _blank.

I'm attaching a quick example here, just in case you want to check it out.

I hope this helps!


Rebecca Fleisch Cordeiro

Hi Leyhton,

You may well be all set, since Christine has provided you with some instructions and a sample file...she's always good at that!

Just in case you want a bit more info, I thought I'd let you know that I created 2 tutorials a while back on how to do this.

One tutorials use a triggers and layers method, as Christine has suggested.

The other tutorial describes how to use a hidden prompt to achieve the same results.

Both YouTube pages also have links back to the community where you can download sample files.

Please shout out with any questions.

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