Community Groups are officially here!
We've released Groups, a new feature that enables us to connect community members of similar industries and interests in a shared, private space. You can check out all of the details here, including information about who can join, how to join, and what Groups are currently offered. Please leave your feedback through this Community Groups Feedback Survey.

Recording validation prompts received

Yanine
Yanine New YorkCommunity Member Qubie ✭

How would I go about getting the survey to record whether a person received a validation prompt? For example, if people receive a notification for an open-ended response if it's under a character or word limit, how can I tell apart who saw this message and then kept writing from those who may have written enough to begin with and never saw the validation prompt?

Answers

  • ChiragK
    ChiragK GUJARATCommunity Member Guru ✭✭

    Try adding this javascript code in open-ended question and create embedded data variable "error_count" above that question block in survey flow. It'll save how many times validation prompt was shown to participant.

    Qualtrics.SurveyEngine.addOnReady(function() {
        var error = Qualtrics.SurveyEngine.getEmbeddedData("error_count");
        error = error && error.trim().length > 0 ? parseInt(error) : -1;
        jQuery('#NextButton').on('click', function() {
            error++;
            Qualtrics.SurveyEngine.setEmbeddedData("error_count", error.toString());
        });
    });