Skip to main content
Participating Frequently
November 1, 2017
Question

How many chars in a text box

  • November 1, 2017
  • 1 reply
  • 113 views

Hi 

I have 5 short answer quiz slides graded as  a survey and i want to discourage my learners leaving one or two word answers.

Is there a way of working out how many chars have been typed in a box - so if its below a certain number I can alert learner.

dosen't need to be robust

Cheers community

 

MM

    This topic has been closed for replies.

    1 reply

    Lilybiri
    Legend
    November 1, 2017

    You would need JavaScript to achieve that, JS has the length property for string values. Create a user variable to store the number of characters. That variable can be used in a conditional action which could show the warning if necessary. The content of a short answer question is stored in the system variable cpQuizInfoAnswerChoice.