Skip to main content
Answer

webhook parameter hidden

  • January 28, 2024
  • 2 replies
  • 95 views

How can i get hidden parameters ? What is the best practice ?

Best answer by picsoung

Hi @sylvain 

hidden fields values are sent in the webhook payload.
They should appear under the hidden section.

Example of payload

{
    "event_id": "01HNJ8X3DP7WKW2JRRPTYKG4Y9",
    "event_type": "form_response",
    "form_response": {
        "form_id": "vqOVSV4t",
        "token": "01HNJ8X3DP7WKW2JRRPTYKG4Y9",
        "landed_at": "2024-02-01T12:04:41Z",
        "submitted_at": "2024-02-01T12:04:41Z",
        "hidden": {
           "user_email":"jojo@lol.com”,
           "user_id":"abc123”,
        },
        "definition": {

        … whole structure of the form

        },
       "answers":[

        … answer to each question

       ]

}

 

2 replies

Liz
Ex–Typefomer
Forum|alt.badge.img+5
  • Tech Community Advocate
  • January 29, 2024

Hi @sylvain Thanks for stopping by the community! Do you mind sharing s bit more about what you’re looking to achieve? Do you want to receive hidden fields in the webhook response? 

If so, as long as you have hidden fields set up and you’re sending data into the hidden fields, that data should appear in the webhook response


picsoung
Typeform
Forum|alt.badge.img+5
  • Developer Advocate @ Typeform
  • Answer
  • February 1, 2024

Hi @sylvain 

hidden fields values are sent in the webhook payload.
They should appear under the hidden section.

Example of payload

{
    "event_id": "01HNJ8X3DP7WKW2JRRPTYKG4Y9",
    "event_type": "form_response",
    "form_response": {
        "form_id": "vqOVSV4t",
        "token": "01HNJ8X3DP7WKW2JRRPTYKG4Y9",
        "landed_at": "2024-02-01T12:04:41Z",
        "submitted_at": "2024-02-01T12:04:41Z",
        "hidden": {
           "user_email":"jojo@lol.com”,
           "user_id":"abc123”,
        },
        "definition": {

        … whole structure of the form

        },
       "answers":[

        … answer to each question

       ]

}