-
1. Re: Hand cursor over 'Next' rollover button and text caption error message
RodWard Oct 16, 2014 1:58 AM (in response to Reflektions)It sounds like you are on the right track but you may have some debugging to do in the details.
Your back and next buttons need to be executing a Conditional Advanced Action that first checks the current value of the TEB's associated variable to verify that it is not empty before executing their assigned Back or Next action.
Each TEB inserted into a Captivate project will by default also have a user variable created that has the same name as the name of the TEB (let's just say for now it's called var_TEB). As soon as you start typing text into this TEB, the associated variable is assigned to have the same value (keystroke for keystroke).
Now if you want the conditional action to make sure the TEB has a value before moving to the next or previous slides, then you need to also create another user variable and NOT add any default value to it. You will use this empty variable (we'll call it var_NULL) in your condition of the conditional action.
So your condition will looks like IF var_TEB is not equal to var_NULL then Go to Next Slide (or Previous Slide depending on whether it is the Next or Back button you're using) ELSE SHOW errorMessage. (Make sure you have the errorMessage variable set to NOT visible in output, otherwise it will be visible as soon as your timeline starts.
So the condition is making sure the TEB's associated variable is not empty before executing the jump to slide action, otherwise it will SHOW the hidden error message caption.
-
2. Re: Hand cursor over 'Next' rollover button and text caption error message
Lilybiri Oct 16, 2014 2:03 AM (in response to RodWard)Where is Null? - Captivate blog
This blog post explains the work flow to check if a TEB is empty.
-
3. Re: Hand cursor over 'Next' rollover button and text caption error message
Reflektions Oct 16, 2014 4:07 PM (in response to Lilybiri)Thanks Lilybiri. That makes sense. Ill try it out. Thanks and thanks for the link also. -
4. Re: Hand cursor over 'Next' rollover button and text caption error message
Reflektions Oct 16, 2014 8:40 PM (in response to RodWard)Hi RodWard, I was able to get the error message to appear, however it wont go to the next slide when I enter something in the text box. I have: IF textEntryBox - not equal to - textEntryNul ACTIONS Go to next slide ELSE Show - TextEntryError I can see that this wont actually check if there are no typos in the text box as well. So what I did is: IF textEntryBox - equal to - My text goes here Actions Go to next slide Else Show - TextEntryError I had tried this combo and a multitude of others but they didnt work. What worked was hiding the message in output as you advised. Thankyou!


