Hidden fields not updating

  • Profile Image
    amarmahallati
    Asked on November 18, 2011 at 02:40 AM

    Hi,

     

    I use the Hidden Field in most of my forms. I use it for the url of the web page where the form is installed so I can see from which particular product page a request has been submitted.

     

    I have changed the urls in the Hidden Fields of some of my forms but in doesn't 'show' on the updated form. Whatever I do, the first url is still the one shown in the submission - not the new url.

     

    Is there a bug or something? Can you please help me out?

     

    Also, is there an alternative way for me achieve the same result than having to add each url into a unique form(i.e. a field that automatically detects from which url the form was submitted)?

     

    I have provided one example of a form which simply doesn't update.

     

    Thanks

    Amar

  • Profile Image
    AtacanC
    Answered on November 18, 2011 at 03:38 AM

    We apologize for any inconvenience this may have caused. Can you please embed your form via iframe code? This should solve your problem. 

    If you have any other questions, feel free to contact us. We'll be happy to assist you.

  • Profile Image
    amarmahallati
    Answered on November 18, 2011 at 04:07 AM

    Hi,

     

    I have just tried this but it doesn't work. It is still the old url which is included...

  • Profile Image
    AtacanC
    Answered on November 18, 2011 at 04:16 AM

    Just replace the first instance of form with www in the URL of your form's embed codes, such that:

    <script src="http://form.jotform.com/jsform/1753340342"></script>

    becomes

    <script src="http://www.jotform.com/jsform/1753340342"></script>

    We'll be waiting for your response.

  • Profile Image
    amarmahallati
    Answered on November 18, 2011 at 04:27 AM

    Ok. I haven't checked this option yet... But the first instance (what we have now) was what we were instructed to do after the hacker attack you experienced a couple of months ago. Did we do that wrong back then?

  • Profile Image
    amarmahallati
    Answered on November 18, 2011 at 04:32 AM

    Also, when I test the form from within Jotform the URL in the notification email is still the old one (while in the form itself it is the new one)...

  • Profile Image
    amarmahallati
    Answered on November 18, 2011 at 04:42 AM

    I have tested your suggestion given above. It doesn't work. Still the same - old - url in the hidden field.

  • Profile Image
    fxr
    Answered on November 18, 2011 at 04:58 AM

    I notice the embed code hasnt been changed as per my colleagues suggestion in http://123egypttours.com/vacation-packages/egypt-classical-tours/egypt-family-tour , did you change it back?

    Also, what is the old values of that hidden field and what should the new one be?

     

    ---

    As an aside, there is actually a more efficent way of acheiveing this type of functionality. You could just have the one 'base' form and populate the hidden field from your embed code.

    e.g if your hidden field had a label URL, you could use an embed code like this:

    <script src="http://www.jotform.com/jsform/1753340342?URL=mywebpage.com"></script>

    then you can have a series of slightly different embed codes on each of your webpages that still use the one form, but you are able to tell where the form was filled in because of the value of 'URL' of that hidden field.

  • Profile Image
    amarmahallati
    Answered on November 18, 2011 at 05:05 AM

    I tested it in my own system, not on the website.

    Old: http://123egypttours.com/vacation-packages/classical-tours/egypt-family-tour

    New: http://123egypttours.com/vacation-packages/egypt-classical-tours/egypt-family-tour

     

    Concerning the 'aside':

    I am not sure if I understand correctly. What would the hidden fields label url be?

    If I were to do it like that would I then be able to use just 1 form altogether? (I use many forms that are exactly the same except for the hidden fields url)

  • Profile Image
    fxr
    Answered on November 18, 2011 at 05:16 AM

    I have a clone of your form : http://www.jotform.com/form/1753340342

    showing that change:

    So my guess, there is something not quite right on your 'own systems' setup which you are using to test this.

    I have done a test submission to http://www.jotform.com/form/1753340342 can you confirm if the 'hidden field' in your submissions has the new label?

     

     

    ----

    your hidden fields label would be 'URL' , its value would be whatever you populate it with in your link.

    Yes, you would only need the one form to achieve what you are using many for now.

    We can go through this once we get your first issue sorted out.


  • Profile Image
    amarmahallati
    Answered on November 18, 2011 at 05:19 AM

    In the notification email I have received it is still the old value shown. I can forward it to you... 

  • Profile Image
    fxr
    Answered on November 18, 2011 at 05:23 AM

    yes please do.

    jotformsupport [at] gmail [dot] com

  • Profile Image
    amarmahallati
    Answered on November 18, 2011 at 05:23 AM

    Would be great to go through the set up you describe after we finish this. Would really simplify things :)

  • Profile Image
    amarmahallati
    Answered on November 18, 2011 at 05:24 AM

    Forwarded

  • Profile Image
    fxr
    Answered on November 18, 2011 at 05:33 AM

    OK, I see the issue. The new URL is actually showing in your submissions.

    The problem lies in how your email alerts are configured. 

     

    You are going to have to update that question in the email composition with the new URL, probably a quicker way to do that, is if you are using the default email notification composition, is just to delete the Notification Email and recreate a new one. 

    But in reality, this problem is just symptomatic of the inefficient way you are using your forms. 

    Do you see that issue I mean about the Notification Email setup? 

    (I will begin creating an example of how I think you should be using the hidden field so that you just need to use one form) 

  • Profile Image
    amarmahallati
    Answered on November 18, 2011 at 05:37 AM

    I see the problem as you mention it. But I have actually tried to delete the Notification Email and create a new one. But the problem persisted.

  • Profile Image
    amarmahallati
    Answered on November 18, 2011 at 05:38 AM

    Looking very much forward to the example you are creating.

  • Profile Image
    fxr
    Answered on November 18, 2011 at 06:01 AM

    Ok, unfortunately, it looks like you may have to change that 'Question' in each of your email notifications.

    ---

    This is a better long term solution anyways:

    I have created a basic form as so.

     

    The URL of this form is: http://form.jotform.com/form/13214057302

     

    But, i can tag on a specific string to populate that hidden 'url' field with anything of my choosing:

    e.g http://form.jotform.com/form/13214057302?url=http://123egypttours.com/vacation-packages/egypt-classical-tours/egypt-family-tour

    gives me an email notification:

     

    or http://form.jotform.com/form/13214057302?url=http://www.google.com

     

     

    Is that making sense?

    and yes, you can add the ?url=mywebsite string onto the embed code for your form. 

     

    e.g <script src="//form.jotform.com/jsform/13214057302?url=mywebpage.com"></script>

     

    Its all relatively straightforward once you actually sit down and try it, it may take a little bit of work on your behalf in getting your form(s) recreated and reembedded onto your webpage(s) but it should save your hours of tedious work in the long run.

    Let us know if there is anything you are unclear about. 

  • Profile Image
    amarmahallati
    Answered on November 18, 2011 at 06:05 AM

    Ok. Got it. 

     

    I will this new way of doing it a go.

     

    Thanks for all your help. Great support!

  • Profile Image
    fxr
    Answered on November 18, 2011 at 06:08 AM

    Glad to be of help.

    Let us know if you run into any problems. 

  • Profile Image
    fdbeirao
    Answered on November 18, 2011 at 06:44 AM

    Just for anyone scratching their heads like I spent my morning: always name your hidden fields full lower case!!!

    I was naming a hidden field "fileId" and I could not pass that througth the url...

    Anyway, full lowercase is working, so Thank you very much, JotForm is exactly what I needed and more :)