Use of pageAdress hidden field in iframe

  • Profile Image
    nozzmoking
    Asked 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
    Goldo
    Answered 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
    nozzmoking
    Answered 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
    liyam
    Answered 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
    nozzmoking
    Answered 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!