How can I know what page the sender is on when sending the form to me.

  • Profile Image
    memlex
    Asked on August 16, 2011 at 06:00 PM

    I have a real estate website with multiple listings including real estate checklist for agents. I have the contact form on each page.

    Is there a way to know what page the sender was on when they submitted the contact form?

  • Profile Image
    abajan
    Answered on August 16, 2011 at 07:31 PM

    Hi memlex

    Thanks for asking. Please see "How to find out the address of the page from which a submission came" in our user guide.

    If you need clarification on anything, be sure to let us know. We'll be happy to assist you.


    ~ Wayne

  • Profile Image
    memlex
    Answered on August 16, 2011 at 07:48 PM

    Is there any way to use this with the embed code?

    When using the source code, the form appears odd on my webpage.

    I tried using the iFrame method, but that will not work because the contact form code is the same throughout the entire website; I cannot use different links for the code within each page.

    Thanks!

  • Profile Image
    allanftd
    Answered on August 16, 2011 at 08:40 PM

    Hi memlex,

    I believe the solution presented in the following thread will be just right for your requirements:

    http://www.jotform.com/answers/19992-How-Can-I-Differentiate-When-I-Use-the-Same-Form-on-Different-Sites

    You only need to use a Hidden Form and slightly modify the form URL in any embed code that you use. Please try and let us know how it goes for you.

    Thank you for using JotForm!

    JOTFORM SUPPORT 

  • Profile Image
    memlex
    Answered on August 16, 2011 at 10:16 PM

    I cannot modify the embed code for each page; each page uses the exact same code and I must keep it that way.

    Thanks.

  • Profile Image
    NeilVicente
    Answered on August 17, 2011 at 09:40 AM

    Hi,

    After fiddling around with JavaScript and form embed codes, I came up with this solution:

    1.  Insert a hidden box to your form, name it to something like "referrer" or "website"

    2.  Get your form's iframe or short embed (script) code. Choose only one.

    IFRAME

    <iframe allowtransparency="true" src="//form.jotform.com/form/12052837062" frameborder="0" style="width:100%; height:550px; border:none;" scrolling="no">
    </iframe>


    EMBED <>

    <script src="//form.jotform.com/jsform/12340640557"></script>

     

    3.  Divide the embed codes into three parts using the guide below:

    IFRAME

    <iframe allowtransparency="true" src="//form.jotform.com/form/12340640557

    " frameborder="0" style="width:100%; height:529px; border:none;" scrolling="no"></

    iframe>


    EMBED <>

    <script src="//form.jotform.com/jsform/12340640557

    "></

    script>

     

    4.  Insert a backslash in front of each double quote

    IFRAME

    <iframe allowtransparency=\"true\" src=\"http://form.jotform.com/form/12340640557

    \" frameborder=\"0\" style=\"width:100%; height:529px; border:none;\" scrolling=\"no\"></

    iframe>

     

    EMBED <>

    <script src=\"http://form.jotform.com/jsform/12340640557

    \"></

    script>


    4.  Append ?referrer= to the first part

    IFRAME

    <iframe allowtransparency=\"true\" src=\"http://form.jotform.com/form/12340640557?referrer=

    \" frameborder=\"0\" style=\"width:100%; height:529px; border:none;\" scrolling=\"no\">
    </

    iframe>

     

    EMBED <>

    <script src=\"http://form.jotform.com/jsform/12340640557?referrer=

    \"></

    script>


    5.  Copy the sliced codes onto the JavaScript code below (be careful not to miss the double quotes):

    <script type="text/javascript">
    document.write("PART 1 GOES HERE" + window.location.href +
    "PART 2 GOES HERE" + "PART 3 GOES HERE");
    </script>

    So it becomes:

    IFRAME

    <script type="text/javascript">
    document.write("
    <iframe allowtransparency=\"true\" src=\"http://form.jotform.com/form/12340640557
    ?referrer=" + window.location.href + "\" frameborder=\"0\" style=\"width:100%; height:529px; border:none;\" scrolling=\"no\">
    </" + "iframe>");
    </script>


    EMBED <>

    <script type="text/javascript">
    document.write(" 
    <script src=\"http://form.jotform.com/jsform/12340640557?referrer= " + window.location.href + " \"></ " + " script> ");
    </script>


    6.  Embed the edited codes onto your pages.

    Hope you find this useful. Let us know if you're having problems with this solution. Thanks!


    Neil

  • Profile Image
    BayresFlat
    Answered on November 16, 2011 at 02:50 PM

    Hello! I'd appreciate some help with this:

    In my site I must use iFrame to embed the form since "source code" interrupts the scripts for the picture galery lightbox.

    In the step number (5) on this guide shows that I have to add the script:

    <script type="text/javascript">
    document.write(

    To my iFrame... Will this prevent my lightbox script for the picture galery on the site to stop working again? 

    If this is true, how can I know which page on my site the customer is submitting the form from?

    Thx for your help!

     

    P.

     

    I want to use iFrame now but I also want the form not to conflict with the site's lightbox script for the images... I can see at:


    At step (5) it asks to "copy the sliced codes onto the JavaScript..." will this create this conflict with my page scripts again?

  • Profile Image
    fxr
    Answered on November 16, 2011 at 07:55 PM

    Hello BayresFlat.

    Putting any javascript into an Iframe will have no impact on the website where that Iframe is embedded.

    as regards this question:

    'If this is true, how can I know which page on my site the customer is submitting the form from?'

    Could you please create a forum thread for this issue, I am not exactly sure if the solution outlined here is totally applicable in your case. Give as much detail as possible as regards what you are trying to do. I am pretty sure we should be able to come up with something for you.

    Thanks.


  • Profile Image
    abajan
    Answered on November 16, 2011 at 09:43 PM

    Would you mind sharing the URL of the website in which the form is embedded? If it's a jQuery based lightbox that is being interrupted when you use the full source of the form, please have a look at the following video that explains how to correctly implement the jQuery.noConflict() fix:

    (It will be clearer viewed directly from YouTube)

  • Profile Image
    BayresFlat
    Answered on November 17, 2011 at 02:31 PM

    Thx for all the help! my site is bayresflat.com

    basically I want to have my form installed in the cathegory pages (apartment description, so that the customer can fill it)

     

    a) When I receive the form it must show me which page (link it was submited from)

    b) I'd like to use the "lightbox" code but it intereferes with a script that shows my picture galery...

     

    basically what I need is that. Can someone give me a hand?

  • Profile Image
    fxr
    Answered on November 17, 2011 at 07:05 PM

    Please create two seperate threads for the 2 different requests, and we will do our very best.

    My first thought is I should be able to help you with both, but please give as much detail as possible in these two new threads & provide a link to where your picture gallery in the relevant post. 

    Thanks.