Forum Discussion
clicking to show and remove text box
Hello,
This is an easy question, I'm rather frustrated that I can't seem to figure it out on my own, as I thought I'd finally started getting the hang of the program.
I want to create a button that I can click to show text, then click the same button to hide that text. Do i need to create variables or something? I figured it had something to do with the order of the triggers at first, but I can't make it work!!
- BWoodsFormer Staff
Hi Susan. No worries—you've got this!
In your original file, you used states to show and hide your content. But if you want an even faster and easier solution, layers may be your best bet. I've attached a new version of your first slide to show how that can work.
On the base layer, all that's there is your button and bullet list. There's just one trigger here: clicking the button shows the "pop up" layer. The "pop up" layer has your supplies list and a second button that sits over top of your first one. There's a different trigger on that button: clicking it hides the "pop up" layer.
So by simply adding a layer and duplicating your button, you can make this work with just two triggers! I hope that helps and let me know if you have any questions.- celinebergeronCommunity Member
Hi ladies, I have also a question based almost on the same topic. I have a lot of text in a layer and I want to avoid animations to scroll the whole thing. I want learners to click and reveal each text box that I have on the same layer. Hope that is clear. I'm not that familiar with Storyline yet. Big thanks
Hi celinebergeron,
Thanks for reaching out!
From what I understand, you would like to display all text boxes on one layer, and allow the learner to select each box to read the full text. One option is to use a pop-up layer like my teammate, Bianca, shared. I've attached a sample file so you can see how I set up the slide. Here are the steps I took:
- Inserted three text boxes on the base layer
- Added three layers (pop-up layers) and with additional text
- Added a trigger to each text box to Show pop-up layer, when user clicks text box
Please feel free to use this setup to get started! Alternatively, if you'd like us to look at your own file, you can upload it here or privately in a support case. Once troubleshooting is done, we'll delete it from our systems. If you have any questions, please let us know!