Hello,
I am integrating Face Reader online into Qualtrics for my data collection. FR online will capture my participant's facial expressions while watching a video. There is an option before the start of the video to agree or not agree to continue. I have set a branch logic and a Java script with the question. If my participant selects “I don’t agree” then should be taken to the end of the survey. Instead, they are being forwarded to the next parts of the survey. I am adding all the images along with code. Can anyone please help me.
Qualtrics.SurveyEngine.addOnload(function() {
// hide the next button
this.hideNextButton();
// change these variables with values for your project/experiment
var experimentID = "2a31f03d45ca4cb99427d53d472ad098";
var options = {
callBackUrl : "https://frdr.online/empty",
width : "75%",
height : "75%"
};
// get or create and store the participant ID
var participantID = RegisterQualtricsID(
Qualtrics.SurveyEngine, "${e://Field/ParticipantID}");
// create RecordingHelper object
var helper = new RecordingHelper(participantID, experimentID, options);
// set what happens when the recording is finished, the code
// below will automatically forward the user to the next question.
// If that is not the intended behaviour, change (that.clickNextButton())
var that = this;
helper.onrecordingfinished = function() {
that.clickNextButton();
};
// set what happens when the recording failed
helper.onrecordingfailed = function() {
Qualtrics.SurveyEngine.addEmbeddedData('recordingStatus', 'failed');
that.clickNextButton();
};
// append the FaceReader Online iframe to the page
helper.start();
});