Solved
Autocoding Verbatim Responses
Does anyone have experience implementing autocoding for verbatim responses in Qualtrics (by auto coding, I mean giving the tool a list of acceptable verbatim answers that'll essentially automatically code verbatims into a hidden multi-choice question)?
Best answer by mattyb513
The attached gist will work for you if you are using a multiline or essay text box. Just add this javascript to the question. It will save the results in Embedded Data rather than a hidden question as that is best practice.
https://gist.github.com/mattbloomfield/fac63be414cbd4ed13839b2f62740cce
You will need to add your regex to the regex variable, as it is currently looking for 'my text string' or 'my other text string'.
Additionally, you would want to change the `fieldName` variable to whatever you were hoping to code. Obviously you could expand this for use with multiple terms.
The `.match()` function in javascript returns an array of matches, so you could even look through those and tag multiple embedded data fields instead of just one.
View originalLeave a Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.