TextInput elements let you to add one- (by default) or multiple-line input boxes to the screen.
Creation:
newTextInput("myTextInput", "some default text")
Example:
[js try=”true”]newTextInput(“feedback”, “Leave your feedback comments here.”)
.settings.log()
.settings.lines(0)
.settings.size(400, 200)
.print()
,
newButton(“send”, “Send”)
.print()
.wait()
[/js]
Adds a 400x200px multiple-line input box containg the text Leave your feedback comments here to the screen above a Send button and waits for a click on the button. The text in the box at the end of the trial will be saved in the results file.
Actions
[yadawiki-list category=”Action command,TextInput element”]
Settings
[yadawiki-list category=”Settings command,TextInput element”]
Tests
[yadawiki-list category=”Test command,TextInput element”]
Index
- Installing PennController
- Ontology
- Aesthetics
- Preloading resources
- ZIPped resources
- Spreadsheet (CSV)
- Canvas creation
- Setup for audio recordings collection
- Commands by element categories
- Standard Element Commands
- Audio element
- Button element
- Canvas element
- Function element
- Html element
- Image element
- Key element
- Scale element
- Selector element
- Text element
- TextInput element
- Tooltip element
- Timer element
- Var element
- Video element
- VoiceRecorder element
- Youtube element
- Special clear command
- Special end command
- Global PennController Commands
- PennController
- PennController.AddHost
- PennController.AddTable
- PennController.CheckPreloaded
- PennController.DownloadVoiceButton
- PennController.FeedItems
- PennController.Footer
- PennController.GetTable
- PennController.GetURLParameter
- PennController.Header
- PennController.InitiateRecorder
- PennController.PreloadZip
- PennController.ResetPrefix
- PennController.Template