I want to record some information from participants using a TextInput element. However, when I click on the text area and begin typing, the default text remains in the text area. Is there a way to clear this text when the participant has entered their own text?
The demo link is here: https://farm.pcibex.net/r/JJwfIj/.
Here’s what the relevant code snippet is:
newTextInput('text', 'This is the default text.')
.print()
This produces a text input area with the default text “This is the default text.” Clicking on the area and entering text appends the entered text to the end of the default text unless you manually clear it.
-
This topic was modified 2 years, 1 month ago by mawilson. Reason: code tags
-
This topic was modified 2 years, 1 month ago by mawilson. Reason: code tags