How to receive calculated score per each answer | Community
Skip to main content
Answered

How to receive calculated score per each answer


Forum|alt.badge.img

How to receive calculated score per each answer inside the webhook payload?

Best answer by Liz

Ok, got it, @dumitru.cucu ! Thanks for sharing this! This is a unique request - do you mind sharing what the use case is for this so I can pass it along to the product team? 

While this might not be something they build in the near future, it would be helpful to know the use-case in case they create a similar solution. 😀

View original

6 replies

Liz
Community Team
Forum|alt.badge.img+5
  • Tech Community Advocate
  • 15025 replies
  • March 26, 2024

Hi @dumitru.cucu Thanks for stopping by the community! Do you mind sharing a bit more about what you’re looking to do? 

It’s possible to send an overall score through the webhook, but are you trying to add the score from each answer option per respondent? Thanks in advance!


Forum|alt.badge.img
  • Author
  • Explorer
  • 6 replies
  • March 26, 2024

Depending on the field type, I want to receive the calculated score per each choice in case if the field it’s `multiple_choice` or `dropdown`, same with other field types.

Currently the only solution at the moment is my parser which based on the form definition (specifically inside `logic` array) analyzes and maps all scores to the corresponding fields:
https://gist.github.com/dumitruPuggle/5e7c58bde3d35643a2089f1bf3d0b3d2#file-typeformformdefinition-ts


Forum|alt.badge.img
  • Author
  • Explorer
  • 6 replies
  • March 26, 2024

Here’s a the output of the parser
https://gist.github.com/dumitruPuggle/fb62c95e8cdeb116b0c7459eec14df78

But still, it has limited support for field types.

 

My main question here is why can’t you guys just include a `calculated` score per each field (choice, or depending on the type) inside the webhook payload. 

 

Unfortunately, I don’t want to be disrespectful, but seriously this has taken a lot of my time, and it was just a is a pain in the arse


Forum|alt.badge.img
  • Author
  • Explorer
  • 6 replies
  • March 26, 2024

Can I expect this feature request from your end or at least is there a possible way to accomplish this without the need to continue developing complex solutions that should be maintained periodically?


Liz
Community Team
Forum|alt.badge.img+5
  • Tech Community Advocate
  • 15025 replies
  • Answer
  • March 26, 2024

Ok, got it, @dumitru.cucu ! Thanks for sharing this! This is a unique request - do you mind sharing what the use case is for this so I can pass it along to the product team? 

While this might not be something they build in the near future, it would be helpful to know the use-case in case they create a similar solution. 😀


Forum|alt.badge.img
  • Author
  • Explorer
  • 6 replies
  • March 26, 2024

Yes sure

Thanks


Reply