Getting the display order of question choices via the API | XM Community
Solved

Getting the display order of question choices via the API

  • 29 June 2018
  • 3 replies
  • 273 views

Hi all,

We are using the Qualtrics API to get survey info (via https://yourdatacenterid.qualtrics.com/API/v3/surveys/:surveyId) and use it to render the survey ourselves.

One problem we are having is with multiple choice questions. We can see the choices available, but there doesn't seem to be anything that tells us what order they are to be displayed in. If we go and rearrange the order, it doesn't affect the order in which we receive them.

Does anyone know if it is possible to get the order of the choices via the API?
icon

Best answer by LaurenK 11 July 2018, 18:00

View original

3 replies

Userlevel 7
Badge +13
Hey @simon! The choices will export based on their internal ID, which is assigned at the time the answer choices are created. If you delete an answer choice, add an answer choice, or change the order of your answer choices, the internal ID may become out of order. If you are unsure of your internal IDs, you can rebuild your question (and not adjust any answer choices) so that the internal IDs are in order!
Hi @LuarenK, apologies if I'm not understanding this fully, but are you saying that the internal ID for each choice determines the order in which it is displayed/exported?

If so, how do I access this internal ID via the API?
Userlevel 7
Badge +13
Hi @simon! Correct - you can export the survey QSF and check the IDs there! For any additional questions in regards to the API, feel free to reach out to our Integrations team!

Leave a Reply