Forum Discussion
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
- SinchuRaj-Community Member
Hi Iharvin,
You can achieve this by adding a small JavaScript.
I’ve created a sample file for you ,please take a look and see if it helps:
https://360.articulate.com/review/content/9c5a8e60-e2f1-490b-ada5-acdbe8fd45fe/review
Let me know if you need any further clarification.
- RonPricePartner
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
- 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.
- lharvinCommunity Member
So weird, but you were right. I deleted it the trigger and recreated it and now it works! Thank you!
Related Content
- 28 days ago