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.
Understanding the Name/Value pair convention of the WebhookAsked by AmSteve on July 01, 2014 at 08:24 PM
I'm trying to implement the server-side handling of a submitted form using the Webhooks integration.
My script is catching the POST Form data from jotform.com but instead of Name/Value pairs that match the field names of my jotform, I'm seeing fields like formID, submissionID, webhookURL, and so on. Clearly jotform-specific fields related to my form but not literally the form data itself. One of the fields has the dataset I'm expecting to see: rawRequest.
That looks like a json representation of my form. Am I expected to parse the form field named 'rawRequest' and break out my own form values from that? Or am I missing something basic in the Webhooks integration.
Yes that is correct. It is not a simple data POST where you can read the data just by reading the post values. The data will be available in json format.
If you are using PHP, you need to use json_decode function which will convert json data to array data. Once you have the data in array, you can read it by key / value pair. You will be able to read the data with the field's name.
We have few webhook examples which you may like to take a look: http://www.jotform.com/help/248-Webhook-Samples
Hope this helps.
Do get back to us if you have any questions.