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

    Trying to code an image submission form to my Squarespace 7 page.

    Asked by jsapfoto on November 19, 2014 at 02:01 PM

    No luck adding a submission form I created on Jotform. Followed the detailed instructions about inserting the code on Sqspace. I appended the iFrames code that id req'd for use on Squarespace.

     

    Not sure if its a sqspace 7 issue or what.  The form looks fine in preview on Jotform

     

    Thanks for any help!

     

    John

    Page URL:
    https://pictureblackfriday.squarespace.com/config#/pages|/new-page-1

    Screenshot
    squarespace JotForm detailed preview
  • Profile Image

    Answered by Ben on November 19, 2014 at 03:31 PM

    Hi John,

    Based on the screenshot, the last part of the iframe code - specifically the js code after it was cut/broken at one point and that is why that part of the text is shown.

    Could you please give us the code that you have added in the squarespace.com?

    Also, I presume by what you have written that you have followed the steps here: How to embed jotform on Squarespace?

    The page above requires login, would it be possible to set it as a public page?

    Best Regards,
    Ben

  • Profile Image

    Answered by jsapfoto on November 19, 2014 at 03:40 PM

    Its live: 

     

    http://pictureblackfriday.com/new-page-1/

  • Profile Image

    Answered by jsapfoto on November 19, 2014 at 03:41 PM

    onload="window.parent.scrollTo(0,0)

    <script type="text/javascript">window.handleIFrameMessage = function(e) {var args = e.data.split(":");var iframe = document.getElementById("JotFormIFrame");if (!iframe)return;switch (args[0]) {case "scrollIntoView":iframe.scrollIntoView();break;case "setHeight":iframe.style.height = args[1] + "px";break;}};if (window.addEventListener) {window.addEventListener("message", handleIFrameMessage, false);} else if (window.attachEvent) {window.attachEvent("onmessage", handleIFrameMessage);}</script>

     

  • Profile Image

    Answered by Ben on November 19, 2014 at 04:52 PM

    Hi,

    OK, the issue is within the code that you are embedding. It does not have the iframe part.

    <iframe id="JotFormIFrame" onload="window.parent.scrollTo(0,0)" allowtransparency="true" src="//www.jotform.us/form/43224098031144" frameborder="0" style="width:100%; height:1960px; border:none;" scrolling="no"></iframe>
    <script type="text/javascript">window.handleIFrameMessage = function(e) {var args = e.data.split(":");var iframe = document.getElementById("JotFormIFrame");if (!iframe)return;switch (args[0]) {case "scrollIntoView":iframe.scrollIntoView();break;case "setHeight":iframe.style.height = args[1] + "px";break;}};if (window.addEventListener) {window.addEventListener("message", handleIFrameMessage, false);} else if (window.attachEvent) {window.attachEvent("onmessage", handleIFrameMessage);}</script>

    Please try adding the code above.

    - it is for your "photography competition and exhibition" jotform.

    Do let us know how it goes.

    Best Regards,
    Ben