Why the webhooks names are changed when the fields are altered?

  • Profile Image
    carynlee
    Asked on December 28, 2017 at 01:24 PM
    I have a Jotform where I am using the webhook integration option to drive some custom code on my end.  On December 26th, I made a change to this Jotform and altered the text slightly (for some new non-English translations) on some questions, but what that seems to have done is also now altered the “name” of the data fields that are going out in the webhook.  That broke our custom code integration since it is looking for instance for a field that *was* called “q138_pysynTyynena”, but now in the webhook is called “q138_pysynTyynena138”.
     
    My questions on this are two-fold:
     
    1st,  I need to fix this pronto - is it possible for Jotform to roll back to the version of my form prior to the edit that I made on Dec 26th? (Or is there a way in the web interface for ME to do this?)
     
    2nd, Why did it change some of these field names, and how do I keep that from happening?
     
    Thanks!
  • Profile Image
    Kiran
    Answered on December 28, 2017 at 02:16 PM

    1st,  I need to fix this pronto - is it possible for Jotform to roll back to the version of my form prior to the edit that I made on Dec 26th? (Or is there a way in the web interface for ME to do this?)

    It is possible to revert the form to an earlier working version from the form revision history. Please follow the steps provided in the guide below:

    https://www.jotform.com/help/294-How-to-View-Form-Revision-History

    2nd, Why did it change some of these field names, and how do I keep that from happening?

    This might have happened when you have changed of the fields that are having unique names for each fields. Could you confirm if you have replaced the entire field or the field label only?

  • Profile Image
    jonathan
    Answered on December 28, 2017 at 04:18 PM

    I did that on purpose, as I have always assumed that only editing the text/display part of a question and saving the form would NOT alter the unique name that is sent out in a webhook so that it wouldn't break my integration. 

    If I understand correctly, you meant you have edited/changed the question or field label/name of the fields. As far as I know this change will indeed affect the  mapped field name used in the Webhook integration.

    What I suggest is to not alter or change the field label/name after doing the Webhook integration already.

    If you need to change the field name, you will need to redo the Webhook integration after also.

    I hope this help. Let us know if issue still remains.

  • Profile Image
    carynlee
    Answered on December 28, 2017 at 04:46 PM

    No - we only changed the question text.  We should be able to do that without the field name changing.

  • Profile Image
    Adrian
    Answered on December 28, 2017 at 07:05 PM

    Is that the only field that got the name changed?

    You can manually change it back (remove the 138) after editing the text.

    Go to the Advanced tab in the Field Properties. Scroll down to the bottom and find Field Name. There you can remove the 138 part at the end.

    https://www.jotform.com/help/146-How-to-Find-Field-IDs-and-Names


  • Profile Image
    carynlee
    Answered on December 28, 2017 at 07:40 PM

    I changed 50 questions (one to four words each).  This is not acceptable and I don't think it is what Jotform intends.  I should be able to change text without having to change my web hooks integration every time.  Can you ask someone else that may know more than you do?  Please?  And I'd like an explanation if this is the way it is intended.  People don't just write surveys and leave them.  Research is done and things change all the time.  I shouldn't have to change my programming every time.  If this is the case, I'll just have to stop using jot form.

  • Profile Image
    jonathan
    Answered on December 28, 2017 at 09:01 PM

    Can you please confirm that you were changing the field label/names in the form? In my example below I changed the field names i.e. Name --> test_Name, Email --> test_Email.

    1514512604zzz 2017-12-29 09.54.42.png


    The changed in field names reflected in Webhook as well.

    1514512862zzz 2017-12-29 09.59.58.png


    this is what I was referring to that editing/changing the field names will affect the mapped field as well when parsed in Webhook.




  • Profile Image
    carynlee
    Answered on December 28, 2017 at 11:45 PM

    https://www.jotform.com/build/70006623443143

    Click on this link - the text is a question/statement, not a label to the question/statement.  Look on page 4.  You will see a page full of questions/statements with a likert scale that the user is to answer 1, 2, 3, 4, or 5.  The question/statement is the text that we changed.

  • Profile Image
    Adrian
    Answered on December 29, 2017 at 05:55 AM

    The field's Unique Name is changed based on the Question Text (Label).

    1514544611lbl.gif


    If you want the field's Unique Name not to change when you change the text of the questions (labels), then please try changing the text by opening the Properties of that question and change the text in the Question Text input. When you make changes here, the Unique Name does not seem to change.

    1514544770lbl2.gif

    1514544841lbl3.png


    So, to recap, revert your form to the version where it worked with your webhook. After that make the changes to the text using the questions Properties, not directly in the form.