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.

Script or CSS to change the text on the 'password protection' page of survey

Mkunza
Mkunza Canada Qubie ✭

When I add password protection to a survey, the default message reads "This survey requires a password"
What script or css can I add to the header or 'custom css' section of the 'look & feel' editor to change this?

Best Answer

  • TomG
    TomG Raleigh, NC Wizard ✭✭✭✭✭
    Accepted Answer

    Add this JavaScript to the survey's Look & Feel Header (in source <> mode):

    <script>
    Qualtrics.SurveyEngine.addOnload(function() {
      var pwLabel = jQuery("label.QuestionText[for=QR\\~Password]");
      if(pwLabel.length == 1) pwLabel.html("My new password prompt text");
    });
    </script>
    

Answers