I have a 2-option MC question inside a L&M block. If participants click the green button, I want to show them (in page) a payout (e.g., you win $4 or $0). I have a counter (embedded data set via JS) that records each time someone clicks the green button. What I need: The first time someone clicks the green button then display the field ${e://Field/g1}, the second time they click the green button then display the field ${e://Field/g2}, …Right now, I’m trying to accomplish this in two steps: Actually displaying the field ${e://Field/current_payout_green} in the survey Trying to update that field each time the green button is clicked via the following JS:Qualtrics.SurveyEngine.addOnReady(function() { var currentGreenCounter = parseInt("${e://Field/green_counter}", 10);if(jQuery("#"+this.questionId+" input[choiceid='2']")) { // increment counter currentGreenCounter += 1; Qualtrics.SurveyEngine.setEmbeddedData('green_counter', currentGreenCounter); //Update the display embedded da
Setup:I have a two-option multiple choice question (pick the red or green button). I have display logic that shows the payout from clicking red or green in page just below the buttons. In the background is a loop & merge that randomly determines a row for the payout (where Field 1 = red payout & Field 2 = green payout). I want to prevent people from clicking the red option, seeing the payout, then clicking the green option to see its payout to see which is better. But I do need the payout to appear on the same page. Is there a way to prevent people from changing their response to a multiple choice question once they’ve made an initial selection? I assume this needs JS but, unfortunately, I don’t know it!Thanks!
Hi community!I've got 10 different vignettes and need to accomplish the following: -Randomly select 2 to display both at the beginning and again at the end of the survey-Randomly select 4 others to only display at the beginning of the survey-Display the remaining 4 only at the end of the survey.Anyone able to help with this? Happy to accomplish it via embedded data, custom JS, advanced randomization, Randomizer blocks, or whatever!Thanks in advance for your help!
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.