Reply To: Removing default text when participant enters text

PennController for IBEX Forums Support Removing default text when participant enters text Reply To: Removing default text when participant enters text

#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