I have a feature where, immediately after a user submits a response through the Typeform embed on my website, I retrieve the response_id
returned by the Typeform component. I then send this response_id
to my backend, which queries the Typeform API using the endpoint https://api.typeform.com/forms/{form_id}/responses
with the included_response_ids
parameter set to the response_id
. However, sometimes the API returns an empty response, as if the response couldn't be found. Could this be due to a delay in the response being created? What would you suggest to handle this issue effectively?
Hi
Hi
As
So many things happen when a response is submitted, and it involves a lot of systems
Sometimes, you are lucky; it went fast, and it’s available right away. Sometimes, it takes a few seconds. It's hard to predict.
If you are trying to build a real-time experience, I recommend using Webhooks; they are quite instantaneous.
Otherwise, you would have to implement a loop to call the Responses API at regular intervals until you retrieve the response object.
I am currently facing the same issue. Wouldn’t it be nice if the onSubmit callback was called with the current survey answers? There are some cases when we need the responses just at the submit time.
Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.