webhook parameter hidden | Community
Skip to main content
Answered

webhook parameter hidden


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

       ]

}

 

View original

2 replies

Liz
Community Team
Forum|alt.badge.img+5
  • Tech Community Advocate
  • 14905 replies
  • 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
  • 388 replies
  • 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

       ]

}

 


Reply