- Print
- DarkLight
Article Overview
In this article, you will learn how to create a field in which learners are expected to enter text.
Create a Text Entry Field
Full Video Tutorial
If you scroll further down, you will find this video broken up into shorter segments, each with a focus area.
Create a Text Entry Field by Creating New Text
- Click the [New Text Icon]
- Drag open a text box
- Adjust the color and size of the text
- Check the [Is Text Input] box
- Enter the prompt you want the learner to see before they enter their text
- Rename the text element so you can find it later
- Update & Close
Create a Text Entry Field by Extracting Existing Text
- Click the [Extract Text Icon]
- Drag over the text you want to convert into a text entry field
- Once converted, use the selector tool to click on it
- If necessary, adjust the color and size of the text
- Check the [Is Text Input] box
- Edit the existing text if needed (what you type in the actual textbox is what the learner will see prior to clicking into the entry field)
- Rename the text element so you can find it later
- Update & Close
Incorporate Text Entry Interactions in a Lesson
- On the [General Tab] Use the X to delete the current 'Selected Controls'
- Use the dropdown to locate your text entry element in the 'Add Control' field
- Click the [+ Icon] to add it to the 'Selected Controls' field
Accept More than 1 Text Entry as Correct
You can accept more than one text strand into a text entry field; but you must program this in advance using regex. When multiple entries need to be accepted as 'correct', copy and paste one of the options below and replace the words 'Option1', 'Option2', 'Option3' with the accepted entries.
- If 2 entries need to be accepted, use:
- /^Option1$|^Option2$/
- If 3 entries need to be accepted, use:
- /^Option1$|^Option2$|^Option3$/
- If 4 entries need to be accepted, use:
- /^Option1$|^Option2$|^Option3$|^Option4$/
You can add as many options as is necessary. Be sure you follow the given pattern. These are CASE SENSITIVE, so consider capitalizations.
In the [Username] field below, any of the following would be accepted as correct:- cat
- dog
- mouse
- Mouse
Notice, only 'mouse' is accepted in lower case and upper case 'Mouse'