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

    How to use URL parameters with edit link of form (edit mode)?

    Asked by rleitman on September 06, 2013 at 12:10 PM

    When I pass parameter in the new form url it is bein populated directly in the form field, but when parameter sent in edit form url , it does not populate the field in the form, and I see the original new form field value.

     Any idea ?  or examples how to send parameters in editr form ?

    new form form field parameters
  • Profile Image
    JotForm Support

    Answered by ashwin_d on September 06, 2013 at 01:57 PM

    Hello rleitman,

    URL parameters will not work if you use the edit link to load your form. When edit link is used, it loads a different php file which is not designed to read url query strings and only reads the value from database.

    URL parameters / query string doesn't do anything on it's own. It just passes the value to the page but code needs to be written to read it and populate the appropriate form field. Edit link (form.php) page is just not designed to do that.

    Hope that answers your question.

    Thank you!

  • Profile Image

    Answered by rleitman on September 06, 2013 at 02:05 PM
    Thanks, however, in new form URL the system does automatically populate the URL parameter in form field with same name ... so the fact it doesnt do it in edit seems like bug or inconsistent behaviour
  • Profile Image
    JotForm Support

    Answered by guilledutra on September 06, 2013 at 02:27 PM

    Hi, 

    The edit link purpose is to fetch the data previously submitted by the user, once the user edited the fields info and hits the submit button, the  new field data will be saved upon the same submission.

    Passing parameters to the URL to prepopulate the form, will achieve something similar like the edit link but will create a new submission.

    Could you provide us with some example about what you are trying to achieve using URL parameters to prepopualte the form fields?

    Thanks

  • Profile Image

    Answered by rleitman on September 07, 2013 at 06:26 AM

     

    I use the following edit URL based on sid returned after initial submit

    http://submit.jotform.me/formID=31844833131450&sid=243918644371477703&mode=edit

    but also try to pass parameter:

     http://submit.jotform.me/formID=31844833131450&sid=243918644371477703&mode=edit&taskID=77

  • Profile Image
    JotForm Support

    Answered by jonathan on September 07, 2013 at 02:49 PM

    @  rleitman

    Hi,

    The URL you have provided does not work anymore

    http://submit.jotform.me/formID=31844833131450&sid=243918644371477703&mode=edit

    http://submit.jotform.me/formID=31844833131450&sid=243918644371477703&mode=edit&taskID=77

    the form must have been deleted already.

    --

    I am not sure, but it seems that you are using the method describe on this guide

    How-to-Make-a-Clickable-Edit-Link-DEPRECATED-

    As you can already see on the guide, it was already a deprecated method. Since it was already obsolete, there can be issue for it not work anymore.

    If you need your form users to update the form submission at a later time, I suggest you use the Edit Link instead.
    Use this guide on how to:

    How-to-Let-Users-Update-Their-Form-Submissions-on-a-Later-Date

    --

    As explained by my colleagues, passing data thru URL parameters will not work in edit mode since it is not a new submission.

    In edit mode, the query code on the backend only uses the existing fields from the original submissions(this is the purpose of the submission ID#). So, this means that you can only edit those fields that was in the original submission. 

    Hope this help. Please inform us if you need further assistance.

    Thanks.

     

  • Profile Image

    Answered by dellquaysc on March 30, 2016 at 12:42 PM

    Guys,

    It does not seem like Rocket Science to get the "mode" parameter passed into the form so that we can access it like we do {form_title} so maybe {form_mode}, or maybe if we could see {sid} and it had a value we would know this was an edit rather than an initial data entry.

    Then we could do as I wish to do which is activate a field if the user is editing the form. I want to provide a "Delete" checkbox if someone is cancelling a registration for an event.

  • Profile Image
    JotForm Support

    Answered by ashwin_d on March 30, 2016 at 02:23 PM

    Hello dellquaysc,

    Please be noted that if you URL parameter will not work with edit link URL. If you pass parameter in the URL, the previous submission data will not load anymore. Please check the screenshot below:

     

    Thank you!

  • Profile Image

    Answered by dellquaysc on March 30, 2016 at 02:45 PM
    PHAgZGlyPSJsdHIiPlBsZWFzZSByZWFkIG15IHF1ZXN0aW9uIGFnYWluLiBUaGlzIHJlcGx5IGlz
    IG5vdCByZWxhdGVkIHRvIG15IHF1ZXN0aW9uIGluIGFueSB3YXkuPC9wPgo8ZGl2IGNsYXNzPSJn
    bWFpbF9xdW90ZSI+T24gMzAgTWFyIDIwMTYgMTk6MjIsIEpvdEZvcm0gJmx0O25vcmVwbHlAam90
    Zm9ybS5jb20mZ3Q7IH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gc3JjPSJodHRwczovL3d3dy5qb3Rmb3JtLmNvbS9pbWFnZXMvbG9nbzIucG5nPzIiIGFsdD0i
    Sk9URk9STSIgaGVpZ2h0PSIzNiIgYWxpZ249InJpZ2h0IiBib3JkZXI9IjAiIC8+PC9hPg0KICAg
    ICAgICAgICAgICAgIDwvZGl2Pg0KICAgICAgICAgICAgICAgIDxkaXYgc3R5bGU9InBhZGRpbmc6
    MjBweCI+DQogICAgICAgICAgICAgICAgICAgIDxkaXYgc3R5bGU9ImRpc3BsYXk6aW5saW5lLWJs
    b2NrO3dpZHRoOjEwMCU7bWluLWhlaWdodDozMDBweCI+DQogICAgICAgICAgICAgICAgICAgICAg
    ICA8ZGl2IHN0eWxlPSJjb2xvcjpncmF5O2ZvbnQtc2l6ZToxMnB4O21hcmdpbi1ib3R0b206MTBw
    eCI+DQogICAgICAgICAgICAgICAgICAgICAgICAgICAgQW5zd2VyZWQgYnkNCiAgICAgICAgICAg
    ICAgICAgICAgICAgICAgICA8c3Ryb25nPg0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
    ICBhc2h3aW5fZCAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3N0cm9uZz4NCiAgICAgICAg
    ICAgICAgICAgICAgICAgIDwvZGl2Pg0KICAgICAgICAgICAgICAgICAgICAgICAgPHAgc3R5bGU9
    Im1hcmdpbjoxMHB4O3dpZHRoOjEwMCU7bWF4LXdpZHRoOjEwMCUiPg0KICAgICAgICAgICAgICAg
    ICAgICAgICAgICAgIDwvcD48cD5IZWxsbyBkZWxscXVheXNjLDwvcD4NCjxwPlBsZWFzZSBiZSBu
    b3RlZCB0aGF0IGlmIHlvdSBVUkwgcGFyYW1ldGVyIHdpbGwgbm90IHdvcmsgd2l0aCBlZGl0IGxp
    bmsgVVJMLiBJZiB5b3UgcGFzcyBwYXJhbWV0ZXIgaW4gdGhlIFVSTCwgdGhlIHByZXZpb3VzIHN1
    Ym1pc3Npb24gZGF0YSB3aWxsIG5vdCBsb2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jY2NjYztmbG9hdDpsZWZ0Ij5VbnN1YnNjcmliZSBUaHJlYWQ8L2E+
    DQogICAgICAgICAgICAgICAgPC9kaXY+DQogICAgICAgICAgICA8L2Rpdj4NCiAgICAgICAgICAg
    IDxsYWJlbCBzdHlsZT0iY29sb3I6I2VlZWVlZSI+MTQ1OTM2MjIwOTwvbGFiZWw+DQogICAgICAg
    IDwvZGl2Pg0KICAgIDwvZGl2Pg0KDQo8L2Jsb2NrcXVvdGU+PC9kaXY+
    ...
  • Profile Image
    JotForm Support

    Answered by Kiran on March 30, 2016 at 04:21 PM

    @dellquaysc,

    It looks like there is an encrypted/automated message posted by you in this thread. If you mean to ask something, we request you to open a new thread and post your question. 

    Thank you! 

  • Profile Image

    Answered by dellquaysc on March 31, 2016 at 05:18 AM

    Hi,

    Sorry.

    The above was a simple post and how this happened I have no idea.

  • Profile Image
    JotForm Support

    Answered by ashwin_d on March 31, 2016 at 09:38 AM

    Hello dellquaysc,

    That's all right. BTW, what was your last post? Do you have any questions?

    Thank you!