What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.

At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.

We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.


  • Profile Image

    Web-hook response payload

    Asked by sagehornung 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 

  • Profile Image
    JotForm Support

    Answered by liyam on May 24, 2017 at 03: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.

  • Profile Image

    Answered by sagehornung on May 24, 2017 at 11:09 AM

     

     

     

    Here is my Jot Form hidden field 

     

    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  

  • Profile Image
    JotForm Support

    Answered by Nik_C on May 24, 2017 at 01: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!