Can you clear a text entry field on click?

Dec 08, 2015

Is there a way to set the text entry field to erase the visible variable when the user click into the text entry space? I have it set to say "Type your response here" in the text entry field, and our testing group finds it irritating that you have to delete that text first before being able to type your own. 

 

Thanks Heroes! 

21 Replies
Ashley Terwilliger-Pollard

Hi Sarah,

What browser or environment are they viewing this in? The last few times I've checked when I click in it I do feel like it cleared out the text field and the user could just start typing. If you've got a course set up you'd like us to check feel free to share a link to it here or a copy of the .story.

Sarah MacDonald

I've solved this. 

My problem was that, since I'm using multiple text entry fields in one module, I customized the variable name from the default "TxtEntry1" to "TextEntry1a" and then "TextEntry1b" and so on. Storyline doesn't like that change. I used their default values of "TextEntry1" and "TextEntry2"  and now magically the text will disappear when I click. 

Leslie McKerchie

Well Sarah, you almost stumped me.

Your slide view looks like this:

Yet the preview looked like this:

I couldn't re-create the behavior with a new text entry box of course.

Took a look at your variables, and found the culprit:

If you remove that default value, the box works as you intend. 

Hope that helps.

Thanks for allowing me to take a look.

John Michael Garcia

Hi! I'm using Storyline 3 and been trying to do this.

I want to clear the input in the data entry field on Slide 1 by clicking a CLEAR button located on Slide 2.

What I did is to create a Trigger, then upon clicking the CLEAR button, it will set the value of the variable assigned to the data entry field to (blank).

Whenever I run the project, it does not do what it is supposed to do.

Maria Costa-Stienstra

Hi, John Michael, and welcome to E-Learning Heroes! ✨

I recorded a very short Peek 360 video showing you the steps I would take on clearing a variable with a button on a different slide as the TextEntry field. 

What is the behavior you are experiencing in your project?

I would be glad to take a look at your specific project if you feel comfortable sharing your .story file in this discussion. I’m sure others in the community might be able to offer suggestions as well.

Raju M P D Narasimha

Hi Team,

Hope everyone doing good.

I have created a quiz with multiple text entry fields. But  previous data was saving in text entry fields while revisiting.

Please guide me how to not to show any previous data in the text entry fields.

Thanks in advance. Stay safe.

Adding screenshot for better understanding. Correct answers is R51 but it stored all my  previous attempts data.

Becca Levan

Hello Raju, and welcome to E-Learning Heroes! ⭐️

Thanks for including that helpful screenshot. It sounds like you see previously entered data when revisiting a quiz. Happy to look into this with you!

It sounds like this could be related to the browser autofill settings, which can't be changed from the Storyline file.

  • Could you share what browser you see this behavior in? Chrome, Edge?

I'm staying tuned for your response so we can continue troubleshooting together!

Becca Levan

Hello again, Raju!

Thanks for sharing those extra details. If you change the autofill settings in each browser, does that make a difference? Here's how to do that in Chrome and Edge.

If you still see this behavior after you edit those settings, it would help share your file in a case here so one of our support engineers can help get to the bottom of this with you!