Forum Discussion
Can you clear a text entry field on click?
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
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.
- SarahMacDonaldCommunity Member
It goes out to a variety of groups, all using different browsers. Although I can say for sure based on my own testing, that in Chrome, safari and IE, it does not automatically erase the text.
- SarahMacDonaldCommunity Member
Interestingly enough, i see in a different course I've built that it DOES disappear when clicked. There must be an option somewhere within storyline that controls this?
- SarahMacDonaldCommunity Member
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. Thanks Sarah for the update and sharing here - sorry that you beat me too it!
- SarahMacDonaldCommunity Member
I'm back to this again. Unfortunately the problem has returned after updating to Storyline Update 7.
Any other help for this issue? Hi Sarah!
Do you have a sample .story file that we could take a look at?
- SarahMacDonaldCommunity Member
Sure... here is a sample of what i'm working with. I've removed the branding and all other pages to protect our clients work, but i've tested this and the problem still persists in this version.
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.
- SarahMacDonaldCommunity Member
thank you for this. it fixed my problem :)
Related Content
- 8 months ago
- 10 years ago