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

    Use of pageAdress hidden field in iframe

    Asked by nozzmoking on May 31, 2012 at 02:31 PM

    My form's working how I want it to but since I switched from the embedded source code to an iframe I can't seem to get pageAdress to work. I'm trying to get the form to tell me which page the form was submitted from.

    Here's the code I'm using - hope you can help.

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

  • Profile Image
    JotForm Support

    Answered by Goldo on May 31, 2012 at 04:41 PM

    I checked the form and it seems that you have incorrect referrer. In your code it says 'pageAdress' while on your hidden field it's 'pageAddress' - does not coincide.

    Below is the code.

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

     

  • Profile Image

    Answered by nozzmoking on May 31, 2012 at 07:35 PM

    Hi Goldo,

    Many thanks for spotting my typo!

    Unfortunately, I still can't get it to work. This is my code:

    <script type="text/javascript">

    document.write("<iframe allowtransparency=\"true\" src=\"http://form.jotformeu.com/form/21237118732347?pageAddress=" + window.location.href + "\" frameborder=\"0\" style=\"width:100%; height:597px; border:none;\" scrolling=\"no\"></" + "iframe>");

    </script>

  • Profile Image
    JotForm Support

    Answered by liyam on May 31, 2012 at 08:53 PM

    Can you please change the case of the capitalization of the letter "A" from capitalized pageAddress to lower caps pageaddress?

    Thanks.

  • Profile Image

    Answered by nozzmoking on June 01, 2012 at 07:31 AM

    Hi Liyam,

    Many thanks, that now works perfectly.

    I must say, since I've been using Jotform the service from you guys has been great!