Trigger a variable only when user types in Text Box??

Dec 03, 2014

Hello Heroes!

I'm unsuccessfully trying to change the state of my results depending on if the user enters text into a text box. If no text is entered then I want the normal state to show. If text is in there then I want a different state. Not sure if this is possible but I figured I'd run it up the flag pole.

screenshot

5 Replies
Ashley Terwilliger-Pollard

Hi Carlos,

Thanks for sharing the image here. My one question, is when does "TextEntry3" change? When using that part of the trigger, the change will need to be occuring on that slide for the state change to take place - and if it's already occurred say on the prior slide, then the trigger isn't going to work as it's looking for the change to take place on the slide itself.  Also it's worth noting that trigger order on these type of set ups is crucial, and you'll want to ensure that you've checked out how triggers will be executed as described here. 

If you're still having difficulty setting this up, you may want to share a portion of the .story file here with us so that we can take a look and provide directions based on your specific file set up. 

Carlos Courtade

Hi Ashley

Thanks for the quick response. My variable TextEntry3 is actually on a previous slide. I'm probably doing this all wrong. Basically I have a couple of slides that the user will only see if they answer NO at certain point. I would like to change the state of my final slide depending on whether the user entered text in those slides on the right side of my branching tree. I added the file if you wouldn't mind taking a look at it. 

Ashley Terwilliger-Pollard

Hi Carlos,

So what I would do, is instead of using the "when the variable changes" trigger - set it up to change the state when the timeline starts, on the condition that TextEntry3 is not equal to TextEntry1 as you have it currently. Although, not knowing what you want the user to enter in each, what are they chances that they're ever going to match and therefore show the user the original state of your slide? Instead of that, you could also use that TextEntry3 is not equal to (blank) by just leaving the value field in the trigger set up, blank. 

Hope that helps!

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