Hello folks, I hope all is well.
I'm wondering if you can help with a coding issue.
I have written a script for a study on cheating (which works beautifully!). In the study, participants are paid based on their performance. Thus, I have several variables that update with almost every action the participant takes.
I want to pass the final dynamically updated variable to qualtrics. The variable name is totalearnings (variables.totalearnings) and it is initially set to 0.
Under <expressions> I have: / totalearnings = format("%.2f", values.totalearnings)
At the end of the study, I write a bunch of variables to various columns in the final data set:
<data>
/ columns = [date time subject blockcode blocknum trialcode trialnum response correct latency stimulusnumber stimulusitem stimulusnumber stimulusitem , values.blockearnings, values.totalearnings , values.totalcorrect, values.totalincorrect, values.blockaccuracy]
</data>
However, when I try to pass values.totalearnings through my Qualtrics link, the value doesn’t pass. Rather, it just passes the term “values.totalearnings.”
I have tried the following links with the same results:
https://whitman.qualtrics.com/SE/?SID=[survey]&earnings=$<%expressions.totalearnings %>
https://whitman.qualtrics.com/SE/?SID=[survey]&earnings=$<%values.totalearnings %>
https://whitman.qualtrics.com/SE/?SID=[survey]&earnings=<%expressions.totalearnings %>
https://whitman.qualtrics.com/SE/?SID=[survey]&earnings=<%values.totalearnings %>
https://whitman.qualtrics.com/SE/?SID=[survey]&earnings=%expressions.totalearnings %
https://whitman.qualtrics.com/SE/?SID=[survey]&earnings=%values.totalearnings %
https://whitman.qualtrics.com/SE/?SID=[survey]&earnings=expressions.totalearnings
https://whitman.qualtrics.com/SE/?SID=[survey]&earnings=values.totalearnings
Notice, I have used both the calculated and formatted expression and the variable itself.
None of these actually send the data, though. Every time, earnings is set to expressions.totalearnings or values.totalearnings, respectively. However, it is always written correctly to the data file.
Can you help me figure out how to pass this data into qualtrics?
Thanks for your time,
BKR