Best regards
Rudi
`Qualtrics.SurveyEngine.addOnload(function()
{
/*Place your JavaScript here to run when the page loads*/
var ageres="${q://QID2/ChoiceTextEntryValue}";
if (ageres>="18" && ageres<="24") {this.setChoiceValue(1,true) ; }
if (ageres>="25" && ageres<="34") {this.setChoiceValue(2,true) ; }
if (ageres>="35" && ageres<="44") {this.setChoiceValue(3,true) ; }
if (ageres>="45" && ageres<="54") {this.setChoiceValue(4,true) ; }
if (ageres>="55" && ageres<="65") {this.setChoiceValue(5,true) ; }
var questionDiv = this.getQuestionContainer();
questionDiv.style.display = "none";
});`
Qualtrics.SurveyEngine.addOnload(function()
{
this.questionContainer.hide();
$('NextButton').click();
});
This basically auto hits the next button so there is just a brief blip.
Also, putting this is the "custom code" category might be useful if you need a quick reply.
Rudi - I know it's been a while but any chance you can explain or share a QSF file? I have a survey where I want to leverage hidden embedded data for an email workflow.
Ex: Q1 asks them to select their name. If they select Captain America, embedded data (their username/login) equals cptamr. Then I can set the email workflow to come from the user. We have custom from domains set up so I can then use the login as embedded data with our email domain.
I do know who the user is. However, this is the second survey in a Longitudinal survey and I do not want to ask their email and username/login in the first survey. I'm not using the longitudinal survey traditionally. I'm having the 1st survey completed by one person, that triggers a workflow to send the 2nd survey to the email to the address they entered in the survey. The 2nd survey is completed by a different person.
Sorry, that was a lot! Just wanted to paint the picture
Leave a Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.