Typeform not returning response answers in order of typeform | Community
Skip to main content
Answered

Typeform not returning response answers in order of typeform

  • September 16, 2022
  • 7 replies
  • 68 views

Does anyone know why with Typeform v1 I could get the response answers back and they would be in the same order everytime, but now in v2 they return a different order every time a request is made. I'm at a complete loss as to how I'm supposed to manage entering users answers in the database now and line them up with the questions because there's no consistent order coming from the response.

So far, I haven't been able to receive a response from Typeform about this.

Here are images of 3 responses from a typeform that return a different order of answers each time. (see: choice > label)

https://i.imgur.com/nZ4uU6I.png

https://i.imgur.com/QN3HTdv.pngErgoal One officeSoftmation

https://i.imgur.com/WIlqwks.png

Best answer by mathio-tf

Hello @roywilliq32 

each answer has field object with id prop. You can use this id to identify which question does the answer belong to. Even if you reorder questions in your typeform their ids will not change.

View original

7 replies

Liz
Community Team
Forum|alt.badge.img+5
  • Tech Community Advocate
  • 14960 replies
  • September 16, 2022

@mathio do you happen to know anything about this? 


mathio-tf
Typeform
Forum|alt.badge.img+5
  • Typeform
  • 888 replies
  • Answer
  • September 17, 2022

Hello @roywilliq32 

each answer has field object with id prop. You can use this id to identify which question does the answer belong to. Even if you reorder questions in your typeform their ids will not change.


Does anyone know why with Typeform v1 I could get the response answers back and they would be in the same order everytime, but now in v2 they return a different order every time a request is made. I'm at a complete loss as to how I'm supposed to manage entering users answers in the database now and line them up with the questions because there's no consistent order coming from the response.

So far, I haven't been able to receive a response from Typeform about this.

Here are images of 3 responses from a typeform that return a different order of answers each time. (see: choice > label)

https://i.imgur.com/nZ4uU6I.pngsky tv packages

https://i.imgur.com/QN3HTdv.png

https://i.imgur.com/WIlqwks.png


Liz
Community Team
Forum|alt.badge.img+5
  • Tech Community Advocate
  • 14960 replies
  • September 20, 2022

Hi @jordanwilliom I’ve added your post here where we have more information on this. 😀


mathio-tf
Typeform
Forum|alt.badge.img+5
  • Typeform
  • 888 replies
  • September 21, 2022

Hello @jordanwilliom are you @roywilliq32 ? You have the same writing style 🤭

Also, did you know Danny had exactly the same issue back in 2018? What are the odds 🤣


  • Explorer
  • 2 replies
  • May 24, 2024

@mathio hi there- this question seems to be what I’m after, but just checking…

 

we get a data file that includes the ‘answers’ field.

this contains all the answers to the typeform in question but as one text string.

each typeform field is denoted by the prefix {“field”,{“id”,BgzIyVtkYxAQ}

when you say the is doesn’t change, you’re referring to the value BgzIyVtkYxAQ in the example above.

 

if we were to add another question in between two existing ones, can I confirm that the new question would have a unique id and the example above, the id  would remain the same.

 

if i use a duplicated questionnaire...do the ids change?

 

cheers

Theo

 


mathio-tf
Typeform
Forum|alt.badge.img+5
  • Typeform
  • 888 replies
  • May 24, 2024

> if we were to add another question in between two existing ones, can I confirm that the new question would have a unique id and the example above, the id  would remain the same.

I think this is correct.

 

> if i use a duplicated questionnaire...do the ids change?

Yes, IDs would change in this case.