Integração - rawRequest

  • gminoboli
    Perguntado em 14 de março de 2025 às 13:21

    Boa tarde!
    Por favor, eu estou desenvolvendo uma integração via webhook e notei que o Jotform costuma encapsular todos os campos do formulário em um único campo chamado rawRequest.

    Existe alguma opção como SettingsIntegrationsWebhooks ou SettingsForm SettingsShow More Options, algo como “Send Post Data = Yes”?

    Caso não, qual a alternativa para não ter que parsear o rawRequest como JSON por favor?

  • Manilene Jotform Support
    Respondido em 14 de março de 2025 às 15:51

    Hi gminoboli,

    Thanks for reaching out to Jotform Support. Our Portuguese Support agents are busy helping other Jotform users right now, so I'll try to help you in English using Google Translate, but you can reply in whichever language you feel comfortable using. Or, if you'd rather have support in Portuguese, let us know and we can have them do that. But, it might take a while until they're available again.

    Now, coming back to your question, In Jotform, form submission data is typically sent as JSON within the rawRequest field when using webhooks. However, you can enable Send Post Data to send form data in a more structured format. TYou can enable the Send Post Data from the Thank you page setting. Let me show you how to do it.

    1. In the Form Builder, click on the Settings tab.
    2. Select Thank you page from the left side menu.
    3. Next, select the Redirect to an external link after submission.
    4. Specify your own thank you page URL and enable Redirect with HTTP Post.

    Integração   rawRequest Image 1 Screenshot 20 Note that this setting primarily applies when redirecting submissions via Thank You Page with a custom URL, rather than webhooks. If you need webhook data without parsing rawRequest, consider using PHP’s parse_str() function (if using PHP) or configuring your webhook endpoint to automatically decode JSON payloads.

    Reach out again if you have any other questions.