A global counter for anonymous survey | XM Community
Solved

A global counter for anonymous survey

  • 18 June 2021
  • 8 replies
  • 13 views

Userlevel 3
Badge

I have just one anonymous survey, which is used as an online form  for students at my university.
Via this form, students submit their course registration requests, etc. So, every day, up to 50 students submit the form.
Let's say, in Question 30, a student respondent has answered "Yes".
In Qualtrics environment, I need to create a global counter which is incremented by one with each such answer "Yes".   For example, if 300 student have answered "Yes", the counter will be incremented to 300.
How to create such a counter? Where will it be stored?
In my actual case, I will need not just one, but 5 such global counters, each of which is incremented depending on the answer in certain five survey questions.

icon

Best answer by ahmedA 18 June 2021, 02:42

View original

8 replies

Userlevel 7
Badge +21

You can use Quotas for this.

Userlevel 3
Badge

Thanks,
Example:
I have created a Quota named "PC141-Fall" for a Fall course PC141 . I added a logic, so that if a student submits a request relevant to PC141 course, then the counter for Quota "PC141-Fall" is incremented by one.
Now I want to make sure that if the same student submits the request for the second or the third time, the counter will not be incremented.
Each student includes his/her student ID number in the form (that is survey).
So I need the following: Quota creates a list of student IDs and for each new request adds a student ID to the list. If later a new request comes with the ID which is already in the list, then the Quota counter is not incremented.
Is there an easy way of doing it with Qualtrics?

Userlevel 7
Badge +21

Not without custom codes. If you have API access, you can look up responses, if not, then you'll need some external storage for this.

Userlevel 3
Badge

Do you mean API access in Qualtrics?
How do I proceed with getting API access?
Is API access granted by Qualtrics or by my institution?
I login to Qualtrics via my university SSO.
Thanks

Userlevel 7
Badge +21

https://api.qualtrics.com/instructions/docs/Instructions/Quick%20Start/qualtrics-api-quick-start.md

Userlevel 3
Badge

https://community.qualtrics.com/XMcommunity/discussion/comment/38491#Comment_38491I just got my Qualtrics my API token, plan to learn Python from scratch. Is Python good with Qualtrics API?

Userlevel 7
Badge +21

You can use Python, R, JS or any other programming language that allows access to the internet to get the API working.
However, I've seen you asking multiple questions about getting something done on Qualtrics. Since you are starting from scratch, my suggestion would therefore be to learn JS.
This is a good place to start: https://dev.to/azure/web-dev-for-beginners-on-learn-4fpk

Userlevel 3
Badge

https://community.qualtrics.com/XMcommunity/discussion/comment/38649#Comment_3864920 years ago, I took a university course on C (not C++), but have not had much programming experience. Now I would need to learn Python for my projects other than  Qualtrics, too. For that reason, I have to use Python over JS. I will greatly appreciate every advice on Python quick-start with Qualtrics

Leave a Reply