Text Input fields
This example will demonstrate the Response for a General Element that contains a Text Input field. The Information section prompts the user to correct the spelling of the following misspelt word. Misspelt word: Obligatrey Correct version: __________ The Interaction section of Element would have a single Input field, named as follows: |
||||
|
||||
This Element will have two separate Responses defined in the Response section, one for a correct answer and another to respond when the field contains the incorrect text. The Answer System variable will be used to construct the conditions for both responses as the Interaction section contains no interaction items with a higher priority setting than a Text Input field. The condition to trap the correct answer would look as follows: IF ANSWER = Obligatory The condition for any incorrect answer would look as follows: IF ANSWER <> Obligatory Remember to check the Ignore Case filter to allow both obligatory and Obligatory as correct answers. |
||||
The feedback section of this response could contain a Change action performed on the Text Input field to replace the text the user entered with the correct text. Using the ANSWER System variable may not be appropriate in some cases. For example if the Interaction section of the Element contained Interaction items with a higher priority setting, or contained more than one Text Input field. In such cases an alterative is to check the text the user entered into the field by checking the value of the field by name. In the current example the condition testing for the correct answer would look as follows: IF Obligatory Field = Obligatory |
||||