PennController for IBEX › Forums › Support › Removing default text when participant enters text › Reply To: Removing default text when participant enters text
October 25, 2022 at 4:34 pm
#9617
Jeremy
Keymaster
Hi,
What you describe is the placeholder
attribute of the HTML textarea
element, and PennController does not provide a direct command to set it, but it actually isn’t that hard to implement:
newTextInput('text').print() , // The bit after the dash ('text') needs to match the name of the TextInput element newFunction( ()=>document.querySelector("textarea.PennController-text").placeholder = 'This is the default text.' ).call() ,
Jeremy