Hello everyone,
I've recently had the need to set a counter in a Ad Hoc Employee Research Survey to count how many times the same answer was selected.
The survey has questions that can be answered yes, N/A or no and I have the necessity to count how many times yes is selected.
I've tried using embedded data and branch if in the survey flow:
setting the counter "total of yes" and then adding a branch for every question in wich if yes was selected the counter went up.
I was wondering if there were a simplier way to accomplish this.
Thank you in advance 😊
Counter for answers
Best answer by bgooldfed
Hi gaiadm_,
You could add some code to each question with the "Yes" option with something like this
if("${q://QID1/ChoiceGroup/SelectedChoices}" == "Yes") {
var counter = "${e://Field/Counter}";
Qualtrics.SurveyEngine.setEmbeddedData("Counter", count + 1);
}
Of course replace "QID1" with the relevant ID for that question :)
Good luck!
Sign up
Already have an account? Login
Welcome! To join the Qualtrics Experience Community, log in with your existing Qualtrics credentials below.
Confirm your username, share a bit about yourself, Once your account has been approved by our admins then you're ready to explore and connect .
Free trial account? No problem. Log in with your trial credentials to join.
No free trial account? No problem! Register here
Already a member? Hi and welcome back! We're glad you're here 🙂
You will see the Qualtrics login page briefly before being taken to the Experience Community
Login with Qualtrics
Welcome! To join the Qualtrics Experience Community, log in with your existing Qualtrics credentials below.
Confirm your username, share a bit about yourself, Once your account has been approved by our admins then you're ready to explore and connect .
Free trial account? No problem. Log in with your trial credentials to join. No free trial account? No problem! Register here
Already a member? Hi and welcome back! We're glad you're here 🙂
You will see the Qualtrics login page briefly before being taken to the Experience Community
Login to the Community
Welcome! To join the Qualtrics Experience Community, log in with your existing Qualtrics credentials below.
Confirm your username, share a bit about yourself, Once your account has been approved by our admins then you're ready to explore and connect .
Free trial account? No problem. Log in with your trial credentials to join.
No free trial account? No problem! Register here
Already a member? Hi and welcome back! We're glad you're here 🙂
You will see the Qualtrics login page briefly before being taken to the Experience Community
Login with Qualtrics
Welcome! To join the Qualtrics Experience Community, log in with your existing Qualtrics credentials below.
Confirm your username, share a bit about yourself, Once your account has been approved by our admins then you're ready to explore and connect .
Free trial account? No problem. Log in with your trial credentials to join. No free trial account? No problem! Register here
Already a member? Hi and welcome back! We're glad you're here 🙂
You will see the Qualtrics login page briefly before being taken to the Experience Community
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
