Get the score max in the response form definition | Community
Skip to main content
Question

Get the score max in the response form definition


Hej !

We use a webhook with Typeform that send us the user’s responses.
The data we get has a field named “form_response” then “definition” what is cool because it gives the “real definition” of the form that the user answered.
I mean the “real definition” because let’s say that if a form defintion is modified in time, like questions are added, question’s ordre modified, questions are deleted, it modifies the form definition.

Having the “real defintion” in the data response, guaranties us having the right user’s questions and answers.

BUT the data response does not include the “logic” part of the form where from we can calculate de scoreMax a user can get.

This data is only on the form defintion.

But as said upper, the form defintion can be modified in time, so we can’t really guarante that the user’s responses score “match” with the current form defintion scoreMax.

Idk if it’s all clear, I’m sorry for my poor english, but my final question is : As we have a field named “score” in the user’s data response (in a webhook), “form_response.calculated.score”, maybe you can include a “form_response.calculated.scoreMax” ?

Regards,

2 replies

picsoung
Typeform
Forum|alt.badge.img+5
  • Developer Advocate @ Typeform
  • 404 replies
  • June 23, 2025

Hi ​@Gumball 

This is a great question.
Indeed, we provide a definition object in the webhook payload. However, it’s succinct in reducing the size of the payload and does not contain the logic part.

My recommendation would be to make an additional API call in your webhook handler to retrieve the current definition of the form by calling /forms/{formId}, and you will have the full definition.

Then you can extract the relevant information for you.
 


  • Author
  • Explorer
  • 4 replies
  • June 23, 2025

Thx ​@picsoung for your answer.

Yes I can do that but it was a question to avoid such a call and at least get scoreMax in the webhook payload wich could respect the size consideration and simplify all the operation (I have to parse all the logic part to calculate the scoreMax…) Also since we already have a form_response.calculated.score we could also have form_response.calculated.scoreMax, don’t you think ?

Could you consider adding something like that in the webhook payload please ?

Regards


Reply