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

    previous page link field?

    Asked by MLServizi on March 19, 2012 at 06:13 AM

    Hi, I need my form's email alert to integrate the title of the page where the submitting user is coming from. 

    I have different articles on my website, and they are all linked to the same "take an appointment" form.

     

    I would like to know which article the user is referring to without making him specify.

     

    Is it possible to do it with jotform, maybe integrating some html/php code field tweaks?

    This is crucial for my activity.

     

     

    Thanks a lot.

     

     

  • Profile Image

    Answered by jcm0731 on March 19, 2012 at 06:50 AM

    Hi,

    There was a solution offered before which seems similar to what you are looking for.
    I will highlight the main content for that here: 

    ===========================================================

    Yes, it is possible to pre-populate a form with data passed from your own site. Simply add "?fieldname=value&" to the URL of a form.  Here is an example:

    http://www.jotform.com/form/1943702801?name=test1&email=test2


    To find out what is the field name for a particular question, you must look up the source code of the form using browser's "Source" option.
    ============================================================= 

    This came from this discussion http://www.jotform.com/answers/7759-Can-I-dynamically-populate-the-form-from-my-application

    Hope this help. Should you need more assistance please contact us.

     

  • Profile Image

    Answered by MLServizi on March 19, 2012 at 07:25 AM

    Thanks for lightning fast response.

    I'm glad I can do that, but at the moment I can't figure out how to apply it to my needs.

    do you know if it exists a specific piece of code to populate a field with the last URL page visited in the window?

     

    here is what I need:

     

    1. the user gets on the website, sees an article of his interest, gets in.

    2. user clicks on "get an appointment", he comes redirected to a page with a jotform form.

    3. I need a field in my form filled with the title of the previous page visited

     

    I have tried adding ?fieldname=history.back()

     

    but it doesn't work. any clues?

     

    thanks a lot

  • Profile Image

    Answered by jcm0731 on March 19, 2012 at 08:05 AM

    Hi MLServizi,

    I am not much of a coder/programmer. I have colleagues here though who can provide better answers. I am sure we will get suggestions/answers from them in a while.
    For now, let me try to offer my inputs up to the extent on what I can understand.

    1. Please try this link " get an appointment "
    2. If you test the link, it will give you the answer to parameters included in the URL(i.e. name and email)

    3.  What he meant by this : 

    To find out what is the field name for a particular question, you must look up the source code of the form using browser's "Source" option. 

    is you should look at the "source code" of the page (previous page). That is, you RIGHT-CLICK on the page and Select View Source (in IE or Chrome when you want to view the text code of a web page). 

    4. Then look for the field question that should be in the URL(its probably "title", in the sample link in step 1, its name and email)

    5. Once you get the field question you need. You can apply it to the link URL for JotForm (like what I did in Step 1)

     

    I hope this help. See if you can proceed from here. If you need further assistance just post back.

    Thanks.