Redirect to url from webook response | Community
Skip to main content
Answered

Redirect to url from webook response


I use a simple form to support our technical team to create tickets in our inhouse ticket system.

The form collects to data and than send it to a webhook where is optimized and the ticket is created.
The response to web webhook contains an individual url to the new created ticket and it would be very helpfull if typeform can redirect to that url after finishing the form/webhook

Best answer by mathio-tf

Hello @antonyit , since submissions and webhooks are processed asynchronously, is is not possible to handle webhook responses on our side.

You will need to build this yourself. I suggest you to embed your form and use onSubmit hook to redirect user to your page with responseId in the URL (you can find code on how to build the redirect here). On this page you you can identify the respondent based on responseId and retrieve the ticket URL from your database.

In your webhook you will need to store the responseId and ticket URL to be able to retrieve it later after redirect.

Hope this helps.

View original

5 replies

  • Author
  • Explorer
  • 2 replies
  • December 4, 2023
The form should redirect to this url from web webhook response payload after completion

 


Grace
Community Team
Forum|alt.badge.img+5
  • Community Advocate
  • 2688 replies
  • December 5, 2023

Hi @antonyit welcome to the community 😊

I think this setup should be possible, tagging in @mathio - do you know how to get this working?


mathio-tf
Typeform
Forum|alt.badge.img+5
  • Typeform
  • 888 replies
  • Answer
  • December 5, 2023

Hello @antonyit , since submissions and webhooks are processed asynchronously, is is not possible to handle webhook responses on our side.

You will need to build this yourself. I suggest you to embed your form and use onSubmit hook to redirect user to your page with responseId in the URL (you can find code on how to build the redirect here). On this page you you can identify the respondent based on responseId and retrieve the ticket URL from your database.

In your webhook you will need to store the responseId and ticket URL to be able to retrieve it later after redirect.

Hope this helps.


  • Author
  • Explorer
  • 2 replies
  • December 5, 2023

Hi Mathio,

thanks for your answer.
Ok. Since I’m a programmer I can solve this that way.
I hoped this would be possible with programming… :-)


mathio-tf
Typeform
Forum|alt.badge.img+5
  • Typeform
  • 888 replies
  • December 5, 2023
Everything is possible with programming 😎

 

 


Reply