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

  • carynlee
    Asked on December 28, 2017 at 1: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!
  • Kiran Support Team Lead
    Replied on December 28, 2017 at 2: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?

  • matthewtoney
    Replied on December 28, 2017 at 2:56 PM

    (someone helping Caryn with this here)

    1st, thank you - I do see now how to using the "revision history" feature and go back to any previous version.  However, I still need to understand my 2nd item there.  So what I had done was edit the "text" portion of various questions on my form (these are "scale fields") and I had not at all touched the "unique name" with the field.  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.  The problem is, in this case of all those edits I made on the 26th that's exactly what it did - for instance, in my previous version of the form (from May 24th) I have a question on there that would come thru the webhook as a field name of "q138_pysynTyynena", yet after the Dec 26th edits it THEN comes thru the webhook as a field name of "q138_pysynTyynena138".  Why did it put that "138" there on the end now and how do I keep it from changing those names like that?

     

    Thanks!

  • jonathan
    Replied on December 28, 2017 at 4: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.

  • carynlee
    Replied on December 28, 2017 at 4:46 PM

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

  • Adrian
    Replied on December 28, 2017 at 7: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


  • carynlee
    Replied on December 28, 2017 at 7: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.

  • jonathan
    Replied on December 28, 2017 at 9: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 Screenshot 10


    The changed in field names reflected in Webhook as well.

    1514512862zzz 2017 12 29 09 Screenshot 21


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




  • carynlee
    Replied 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.

  • Adrian
    Replied on December 29, 2017 at 5:55 AM

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

    1514544611lbl Screenshot 10


    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 Screenshot 21

    1514544841lbl3 Screenshot 32


    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.