What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.
At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.
We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.
Create Instant Notification - WebhookAsked by habhab on November 01, 2013 at 07:18 AM
I created a form with JotForm, and I have it embedded in my website (I'm using XARA Web Designer Premium 9). I could even have it use my favorite Google font, it just works great so far!
Instead of JotForm to send an e-mail, I would like to process the form myself. Is it correct to assume that this can be done through a WebHook? Is it correct that I can completely design my own WebHook on my website? I would create a file called myscraper.php, which means I don't make use of "requestb.in". Is it correct that if I use the WebHook, that all parameters of the form will be sent to myscraper.php through $_POST variables?
I created a webpage myscraper.php, and put this in my form as WebHook. The page doesn't process anything yet. But after submitting my form, I don't see the page. I only see the standard 'Thank you' being displayed. Is there a way to get rid of that "Thank you" and show my myscraper.php instead?
Thanks for your assistance,
I just figured out I have to enable to POST the variables, and have now replaced the thank you page with my own URL. That works perfect!
But I wonder why you ever would need WebHook? Are there advantages/disadvantages for it?
Yes, you can use both features to capture users data and send to your email. When it comes to the workflow, the webhook does not require thank you page setup as it works separately after the form is submitted, while normal post data, it passes to the thank you page first before it redirects to your custom php URL.
Webhook can be used in many ways as well. This article explains everything about it. https://webhooks.pbworks.com/w/page/13385124/FrontPage
Not sure what you mean in your above answer regarding the "thank you page". I have updated the "thank you page" to my own URL, which is a php file on my server. In the advanced options I have alos set to POST the variables. Having done all that, I don't see any thank you page anymore, and my data is correctly processed in my php file.
Or do I miss something? Why would I still use a webhook? Or do you mean that I can just replace the webhook with my own php page, and would this give the same results?
Thanks for your reply.
I was referring to the workflow. Like I've said, post-data requires custom php URL in which submissions is processed on thank you page. If you noticed, after submitting the form it redirects you to your custom thank you php page. That's how post-data works with Jotform. However, webhook works silently. If you submit the form, it does not do any redirection. There's actually no technical difference between the two in the form builder. Since post data works for you, you don't need to setup a webhook anymore.
But just incase you'd like to know more about Jotform Webhook, here's a guide: How to Setup Webhook with Jotform. There's also an available instant notification sample script below that guide.
Damned, why didn't you tell me this a couple of days ago, which would have saved me a lot of coding!!! :-) No kidding, your 'trick' gave me exactly what I wanted. Thank you.Is there a way to customize this 'thank you'-page based on one of my webpages (PHP-based)? Reason is that my pages all have the same style with logo, google font based title, some pictures, lines, ... etc..., and even contains some code in the beginning to only allow logged in users. It would be nice if I can embed the code of the 'thank you' page into my own webpage, still keeping the features like the ability to show the fields in a list acting as a confirmation page. Can this be accomplished? And without decreasing the submission-count before 'submit' is being pressed of course.Thanks in advanced, and by the way: GREAT PRODUCT!!
That's great to hear that you got your problem sorted out with regards to customizing your thank you page please see this guide and see if this works for you. http://www.jotform.com/help/98-Confirmation-Page-Tricks. You can even try this sample form that is created by one of my colleague http://www.jotform.com/form/12455618563. If you have other questions do let us know.
That was exactly the answer I got from EltonCris:-) I was just hoping that instead of adapting the standard 'Thank you'-page, I could customize it starting from my 'thank_you.php' page on my domain. But seeing that I'm directed to the same answer again, I assume this can NOT be done?
I'm not quite sure if Jotform has that standard feature built in I will have to confirm that, but what I can think of is to use the Change Thank You URL after submission if what you want is to redirect user to 'thank_you.php' after submission. If this does not work for you I will have to check other ways to do that.