Sending dynamically generated data to qualtrics from inquisit.


Author
Message
bkr
bkr
Associate Member (52 reputation)Associate Member (52 reputation)Associate Member (52 reputation)Associate Member (52 reputation)Associate Member (52 reputation)Associate Member (52 reputation)Associate Member (52 reputation)Associate Member (52 reputation)Associate Member (52 reputation)
Group: Forum Members
Posts: 1, Visits: 1

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



Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 13K, Visits: 108K

See the documentation for the <defaults> element's /finishpage attribute for correct syntax. That's where you need to set the page to redirect to, including the query parameter you want to forward. Note that there are a number of issues with setting URLs in script in the current release. These will be fixed in the upcoming 4.0.4 release.


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search