Web-hook response payload

  • sagehornung
    Asked on May 23, 2017 at 11:43 PM

    I have successfully set up a web-hook on a form. I am using query params to populate a hidden field in the form that I use on my server to id and associate with a specific document record. What I noticed is that it prefixes it with a q{some number}_myIdName. I realized this is the question number in the form. Is there a way to force this value to a constant in all of my forms? Or would I always have to enter my hidden field first so it ends up prefixing with a  q1_ . I would like to use this on a number of forms so I only have to check one field when parsing the response payload. 

    Thanks 

  • liyam
    Replied on May 24, 2017 at 3:41 AM

    Hello sagehornung,

    I'm sorry, I'm having difficulty discerning your case. Can you give us a link to the form with a detailed scenario so for us to be able to further understand the situation?

    However, if you are looking for a way to pre-fill all fields with the same value in an attempt to remove the q1_ part, unfortunately, that's not how it works. The name field actually requires the latter half and not the 1st half of the field name. (Though I still feel I'm misunderstanding the concern so it would be best to wait for additional information from you)

    Looking forward to your response.

    Thanks.

  • sagehornung
    Replied on May 24, 2017 at 11:09 AM

     

     

     

    Here is my Jot Form hidden field 

    Web hook response payload Image 1 Screenshot 20

     

    This comes from request bin

    rawRequest: {"slug":"submit\/71406408084150\/","q4_name":{"first":"hush","last":"puppy"},"q5_email":"h@p.com","q7_clickTo":"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAY4AAADICAYAAAD\/cga5AAAgAElEQVR4Xu2dB1hUx9fGX7GgomBDRREFNV.........BUNCH OF BASE 64 DATA....."q6_ophthoGrEventId":"5923cffde23dd820742575c9","event_id":"1495519393468_71406408084150_4HcdcYr"}

     

    I am going to use ophthoGrEventId as a hidden field on other forms and populate with a query param. Is there a way to keep this consistent across forms? The q6_    was added.

     

    Thanks  

  • Nik_C
    Replied on May 24, 2017 at 1:44 PM

    Unfortunately, I'm not sure if you will be able to force the field name in the form, the q part of the field's name is incrementing automatically based on the order of the adding of the field. What I mean is if your field (ophthoGrEventId) is added sixth to the form, in every form, then the prefix will most likely be q6 in all of them, I understand that's a long shot.

    The only way to change this is by downloading the Full Source code of your form and changing the field's name.

    If you have any further questions or had something else in mind, please let us know.

    Thank you!