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?
Page 1 / 1
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>
```
```
<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>
```
Worked perfectly! Thank you!!!
Hi
I’m wondering if something has changed since this was written four years ago when you first responded to this?
Thanks,
Kate.
Hi
I’m wondering if something has changed since this was written four years ago when you first responded to this?
Thanks,
Kate.
Yes, the Community platform updates messed up the code:
<script>
Qualtrics.SurveyEngine.addOnload(function() {
var pwLabel = jQuery("label.QuestionTextnfor=QR\\~Password]");
if(pwLabel.length == 1) pwLabel.html("My new password prompt text");
});
</script>
Thanks so much!
Leave a Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.