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 auto fill a hidden field using URL parameter

    Asked by Herder on September 17, 2014 at 12:03 AM

    Hi,

    Good day.

     

    I am a new user of your site and our company is planing to migrate with your system and buy the professional product once we found that this tool is the one that we are in need.

    We are on the last part of the testing, all of the tests that I made was successful.

    Here is my query, we created a php site using dreamweaver, my boss asked me to remove the email field on the  form that I created.

    The logic behind this is once our client log in in our php site, it will automatically show the page for that client, but since I will be removing the email field, my problem is how that our clients will receive the email notification that they submitted if I deleted the email field. (I am referring with the email alerts tab).

    Can you please suggest any possible options? As of now, I am thinking if jotform has the capabilities of getting the information from the sql database that I have and then I will create hidden question your email address to fill in.

    Second option is by the use of parameter if possible.

    Hoping that you got my point.

    Thank you very much.

    Autofill prepopulate populate field
  • Profile Image
    JotForm Support

    Answered by EltonCris on September 17, 2014 at 03:43 AM

    Hi,

    Yes, prepopulating fields is possible via URL parameters.

    Example: http://form.jotformpro.com/form/42591457839973?email=user@domain.com

    You can also hide the field if you want to. Here's how:

    Here's a complete guide: https://www.jotform.com/help/71-Prepopulating-the-fields-to-your-JotForm-via-URL-parameters

    ----

    If you're embedding the form using iframe, you can use this sample code along with your php script to fetch the user email from your site.

    <iframe id="JotFormIFrame" onload="window.parent.scrollTo(0,0)" allowtransparency="true" src="https://secure.jotformpro.com/form/40924949465972?email=<?php //your php script here ?>" frameborder="0" style="width:100%; height:465px; border:none;" scrolling="no"></iframe>

    If you need further assistance, do let us know.

    Best Regards!

  • Profile Image

    Answered by Herder on September 17, 2014 at 06:36 AM

    Hi EltonCirs,

     

    that's resolved my problem.

    Thank you very much.

  • Profile Image

    Answered by Ben on September 17, 2014 at 08:34 AM

    Hi,

    It is great to see that you were able to resolve your problem.

    Have a nice experience using JotForm and let us know if you have any further questions.

    Best Regards,
    Ben