I've built some custom functions to calculate and display values based on embedded field values. Right now the functions run whenever we click on a radio button in the survey. The code is as follows Qualtrics.SurveyEngine.addOnload(function(){ function compute_total(){ //some computations with embedded data field happen here } function drawChart(){ //some chart elements are updated here } jQuery("input[type=radio]").click(compute_total); jQuery("input[type=radio]").click(drawChart); } And this works just fine. However, I also want both these functions to run just once when the page loads. And I'm not sure how to do that. window.onload doesn't work in Qualtrics. I tried the following: Qualtrics.SurveyEngine.addOnload(function(){ function compute_total(){ //some computations with embedded data field happen here } function drawChart(){ //some chart elements are updated here }
Already have an account? Login
Enter your username or e-mail address. We'll send you an e-mail with instructions to reset your password.
Sorry, we're still checking this file's contents to make sure it's safe to download. Please try again in a few minutes.
Sorry, our virus scanner detected that this file isn't safe to download.