Issue with hidden fields clearing on submission

  • Profile Image
    tullymortgages
    Asked on February 15, 2018 at 08:38 PM

    i have a form that I auto populate a hidden field from the URL that indicates where the form filler came from, for example:

    https://form.jotform.com/80364418257257??leadSource=Website

    However because of the size or the form, and the fact that may fields are hidden based on responses I have the hidden field clear on submission as not to collect undesired information.  Is there a way for the lead source field data to remain, even when clearing the undesired fields?



  • Profile Image
    Kiran
    Answered on February 16, 2018 at 01:20 AM

    Generally, the option to clear the hidden values will work for the fields that are hidden by conditions. Since you are already placing a value to the hidden field, it should not be cleared when the form is submitted. I have also tested your form by cloning to my account and it worked normally. I was able to see the LeadSource field filled in the submission page. Are you still experiencing any issue with the form? Please let us know if the form is embedded on any of your web pages. If so, please share the web page URL where the form is embedded so that we can take a look and assist you further.

    Thanks!

  • Profile Image
    tullymortgages
    Answered on February 16, 2018 at 08:58 AM

    Thanks Kiran,

    The form is embeded here:

    http://tullymortgages.ca/mortgage-application/


    I included the leadsource value in the embed code on the page as such:

    "<script type="text/javascript" src="https://form.jotform.com/jsform/80364418257257??leadSource=Website"></script>"




    Will that work or does the data need to be fed to the field in the link, for example;

    http://tullymortgages.ca/mortgage-application/?leadSource=Website

  • Profile Image
    Kiran
    Answered on February 16, 2018 at 10:59 AM

    I have tried sending a test submission to your form using the direct URL and I see that the leadsource is correctly captured in the submission. Also, as I tested another test form by embedding on a web page using Javascript embed method, the hidden and prepopulated field is captured normally. 

    As I tried to submit the form on your web page, the leadsource is not captured correctly to the submission. Could you try show the field on the form by disabling the option Hide Field for the leadsource field to see if the value is actually displaying on the form before submitting the form? This might help us in investigating the issue further.

    Thanks!