4 Replies Latest reply: Oct 16, 2014 8:40 PM by Reflektions RSS

    Hand cursor over 'Next' rollover button and text caption error message

    Reflektions Community Member

      I have a template I must adhere to. It has Back and Next buttons with a hover state.

      I need a text entry box on screen to simulate the user entering text in a form field.

      If the Next button is clicked and the text field is empty or incomplete I want an error message to popup. If the text field is completed correctly the Next button will go to next slide.

      Unfortunately I need BOTH the hover state and hand cursor on the next button.


      Ive tried a few scenarios and below is an example of one:

      - add text entry and delete text entry button

      - add text caption called errorMessage

      - create variable called nextButtonIncrement

      - create a conditional action called checkTextCaption  to run on screen entry

      - increment Next button by 1 when clicked

      - action checks if button has a literal of 1 or more, and if text caption has correct literal (i.e. text).

      - if true move to next slide

      - if false show error message


      The problem with the above is the error message appears on slide entry. I only want it to appear when the user clicks Next AND the text entry caption does not have MESSAGE in it. Im currently trying an AND OR conditional action, but am wondering if anyone knows if I am wasting my time or not.

        • 1. Re: Hand cursor over 'Next' rollover button and text caption error message
          RodWard CommunityMVP

          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 CommunityMVP

            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 Community Member
              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 Community Member
                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!