Can you set default choice on text entry boxes that disappear when participants click in the box? | XM Community
Skip to main content
Solved

Can you set default choice on text entry boxes that disappear when participants click in the box?

  • May 18, 2018
  • 1 reply
  • 319 views

Forum|alt.badge.img+5
I would like to set a default response for a text entry question to demonstrate the format the text should be in, but I would like the default text to disappear when the respondent clicks on the box. Is this possible? Thank you in advance for your help!

Best answer by TomG

Add a placeholder attribute with your 'default' text to the `<input>` tag using JavaScript.

1 reply

TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • 6084 replies
  • Answer
  • May 18, 2018
Add a placeholder attribute with your 'default' text to the `<input>` tag using JavaScript.