Auto Clearing a Search/Text Entry box
Oct 08, 2013
I am looking for some assistance as to how I can auto clear a search/text entry box in my course. I created a search site within the course where the learner can search for a term (reaction to change) by typing the term into a text entry box and then clicking enter or the Go button on screen. It will then take them to a search results page where the learner will learn about the subject and click a button to take them back to the original page. This is all set up using layers. The issue I am having is that upon return to the main layer (search page) the text entry box retains the last searched term and I would like it to be blank. Is there a way this can be done?
I have attached screen shots of the search page as well as the landing page so one can see how they are returning to the search page.
8 Replies
Hi Craig - welcome to Heroes!
On the slide where the user enters their search item, you can add the following trigger to reset the text entry variable:
I hope this helps
Thanks. I set up this variable again however upon return to the search screen the text entry box still contains the term previously searched. I have played around with the state of the slide from Auto Decided to Return to the Initial State and neither seems to work. Should this be a slide trigger or a text entry trigger?
Hi Craig,
Can you try adding this trigger to the button the user clicks on to return to the search screen instead? As SL executes triggers from top to bottom, you will need to move this new trigger to above the trigger that jumps back to the search screen to ensure that the variable is adjusted first.
I have attached a very rough demo that does what you are trying to achieve - I hope it helps
Antony
Hi Craig and welcome to Heroes! It looks like Antony has you covered here, but if you need anything else just let us know!
Hi there,
I am having the same issue as Craig for 50+ text entry boxes in my module. I have double checked the slide properties and added the slide trigger to clear out the variable. Any other ideas?
Hi Jody,
Have you set the trigger as Antony described on the button the user clicks to return to the page with the text entry? If you'd like to share a copy of the .story file here, or even a few sample slides we can double check your trigger logic (order is important with these!).
Yahoo! It was the sequence of triggers associated to the button. I had the 'jump to' trigger before the 'clear' trigger.
Thanks, Ashley!
Yay! Glad you solved it. Trigger sequence will always matter, as they'll execute from top to bottom. Have a great weekend!
This discussion is closed. You can start a new discussion or contact Articulate Support.