How do we read the POST data via Ruby platform?
-
johanAsked on April 30, 2020 at 11:30 PM
I am trying to use Sinatra (Ruby) to read the Jotform POST data.
But All I get is the raw multipart data. Can anyone assist?
--------------------------12345
Content-Disposition: form-data; name="formID"
3456789
--------------------------12345
Content-Disposition: form-data; name="submissionID"
3456789
--------------------------12345
Content-Disposition: form-data; name="webhookURL"
url
--------------------------12345
Content-Disposition: form-data; name="ip"
0.0.0.0
--------------------------12345
Content-Disposition: form-data; name="formTitle"
Title
--------------------------12345
Content-Disposition: form-data; name="pretty"
data
--------------------------12345
Content-Disposition: form-data; name="username"
asdfghj
--------------------------12345
Content-Disposition: form-data; name="rawRequest"
{"slug":"submit\/\/","q13_dashboardUserID":"","q12_0":"@live.com","q15_dashboardMobile":"","q16_dashboardUsername":"","q17_dashboardGin":"","q3_1":"28 - 35","q4_2":"R20 000 - R30 000","q5_3":"Married","q6_4":"Yes","q7_5":"","q8_6":"software engineer","q9_7":"Yes","q10_8":"3","q11_9":{"area":"","phone":""},"preview":"true"}
--------------------------12345
Content-Disposition: form-data; name="type"
WEB
--------------------------12345--
This is a re-post of a comment on How to Post Submission Data to Thank You Page
-
RoneetAnswered on May 01, 2020 at 10:22 AMJotform Support
May we know the form in question? Are you calling the correct field name to get the data from the response?
Are you getting the response when the form is submitted?
Looking forward to your response.
Thanks.