Hello, there is a task I struggle to implement.
There are 22 fields, each input has to be compared to the ‘correctAnswer”, defined in embeddedData, and depending on the match/no match(there are some string manipulations to be done with the input before comparing) another embeddedData ‘score’, has to be assigned value 1 or 0.
I want this function to be defined in the header, so it can be edited in one place.
something like
function checkAnswer(questionId, correctAnswer, score){
}can the function defined in the header, take embeddedData as an argument? Can I use How do I call the function ? Can I Qualtrics.SurveyEngine.setEmbeddedData('score1',score) in such function? (‘score1’ has to be passed as argument).
I am lost:(
