Skip to main content
Inspiring
February 23, 2017
Answered

Checking Only Certain Words Typed into Text Entry Box

  • February 23, 2017
  • 2 replies
  • 206 views

If a learner types in some freeform text to a text entry box, is there a way to check that the learner typed in certain words while ignoring the other words (after they click a Submit button)?

    This topic has been closed for replies.
    Correct answer RodWard

    You could use Conditional Actions to check for certain words in the TEB's associated user variable using the Expression action and the Contains operator.

    2 replies

    Lilybiri
    Legend
    February 24, 2017

    Another approach has been used in this blog post:

    Custom Short Answer Question - Captivate blog

    I used the Scrolling Text Interaction in this case. To score the question you can use the approach with two Next buttons described in this blog post:

    Report Custom Questions - part 2 - Captivate blog

    RodWard
    Community Expert
    RodWardCommunity ExpertCorrect answer
    Community Expert
    February 24, 2017

    You could use Conditional Actions to check for certain words in the TEB's associated user variable using the Expression action and the Contains operator.