Forum Discussion

lharvin's avatar
lharvin
Community Member
20 days ago
Solved

Trigger for a BLANK TextEntry field

I'm trying to make a trigger to jump to a slide if the learner types an answer and layer (oops try again) if they leave the TextEntry field blank. 

So far I cannot find the right combination to show a layer when leaving the TextEntry blank. 

Can someone take a look at my trigger/s and see why whether there is text or not, it jumps to the slide and doesn't show the layer?

Also, it looks like the "Else: Show layer no occupation error" is not working how I expect it to. 

It doesnt matter what you type (or not type) in the Text Entry, it jumps to the slide. 

  • Interesting.  Your file did not work, but then I rebuilt the trigger(the same trigger conditions) and it work.  SO, evidently the trigger had become corrupt.  Are you working on your local C: Drive or a shared drive?

     

8 Replies

  • It looks like your triggers are in conflict with each other.  The text entry = a value  and not equaling blank are essentially the same thing.

    A trigger pattern that should work would  be

    Jump to slide if Text entry = Whatever your values are and then add the ELSE of Showing the Layer.

    Even more simple - Jump if not equal to blank (ensures that they type something) and then the ELSE whould show your Layer

    • lharvin's avatar
      lharvin
      Community Member

      Hi Ron, that makes sense to me however this still does not show the layer. In preview it still jumps to slide if text entry is blank or any other typed word like 'testing'.

  • SinchuRaj-'s avatar
    SinchuRaj-
    Community Member

    Yes, Ron, this can be achieved without JavaScript as well. However, JavaScript can be useful if he needs to add additional conditions or perform more advanced validation on the input text field.

  • lharvin's avatar
    lharvin
    Community Member

    So weird, but you were right. I deleted it the trigger and recreated it and now it works! Thank you!