Captcha is not fully visible when triggered?

  • EdgeDigital
    Asked on May 31, 2022 at 2:39 PM

    Users are unable to see the challenge in its entirety. In other cases, they are unable to see the challenge instructions. Please help


    1654019518 629655be12aae  Screenshot 10

    Jotform Thread 4055989 Screenshot
  • Kenneth JotForm Support
    Replied on May 31, 2022 at 5:32 PM

    Hello EdgeDigital,

    Thank you for reaching out to Jotform Support. Please try to increase the iFrame of the embedded form to allow space for the bottom part of the captcha to be visible? Please try the code below:

    <iframe
          id="JotFormIFrame-221465773204151"
          title="PowerSolve Download PDF"
          onload="window.parent.scrollTo(0,0)"
          allowtransparency="true"
          allowfullscreen="true"
          allow="geolocation; microphone; camera"
          src="https://form.jotform.com/221465773204151"
          frameborder="0"
          style="
          min-width: 100%;
          height:539px;
          border:none;"

          scrolling="no"
        >

        </iframe>

    Let us know if you have any further questions.

  • EdgeDigital
    Replied on June 1, 2022 at 8:12 AM

    Thanks for that, but I'm confused because the code I entered has the height set at 539px, see below. Should I delete everything after </iframe>?


    <iframe id="JotFormIFrame-221465773204151" title="PowerSolve Download PDF" onload="window.parent.scrollTo(0,0)" allowtransparency="true" allowfullscreen="true" allow="geolocation; microphone; camera" src="https://form.jotform.com/221465773204151" frameborder="0" style="min-width: 100%; height: 539px; border: none;" scrolling="no"> </iframe>
    <script type="text/javascript"> var ifr = document.getElementById("JotFormIFrame-221465773204151"); if (ifr) { var src = ifr.src; var iframeParams = []; if (window.location.href && window.location.href.indexOf("?") > -1) { iframeParams = iframeParams.concat(window.location.href.substr(window.location.href.indexOf("?") + 1).split('&')); } if (src && src.indexOf("?") > -1) { iframeParams = iframeParams.concat(src.substr(src.indexOf("?") + 1).split("&")); src = src.substr(0, src.indexOf("?")) } iframeParams.push("isIframeEmbed=1"); ifr.src = src + "?" + iframeParams.join('&'); } window.handleIFrameMessage = function(e) { if (typeof e.data === 'object') { return; } var args = e.data.split(":"); if (args.length > 2) { iframe = document.getElementById("JotFormIFrame-" + args[(args.length - 1)]); } else { iframe = document.getElementById("JotFormIFrame"); } if (!iframe) { return; } switch (args[0]) { case "scrollIntoView": iframe.scrollIntoView(); break; case "setHeight": iframe.style.height = args[1] + "px"; break; case "collapseErrorPage": if (iframe.clientHeight > window.innerHeight) { iframe.style.height = window.innerHeight + "px"; } break; case "reloadPage": window.location.reload(); break; case "loadScript": if( !window.isPermitted(e.origin, ['jotform.com', 'jotform.pro']) ) { break; } var src = args[1]; if (args.length > 3) { src = args[1] + ':' + args[2]; } var script = document.createElement('script'); script.src = src; script.type = 'text/javascript'; document.body.appendChild(script); break; case "exitFullscreen": if (window.document.exitFullscreen) window.document.exitFullscreen(); else if (window.document.mozCancelFullScreen) window.document.mozCancelFullScreen(); else if (window.document.mozCancelFullscreen) window.document.mozCancelFullScreen(); else if (window.document.webkitExitFullscreen) window.document.webkitExitFullscreen(); else if (window.document.msExitFullscreen) window.document.msExitFullscreen(); break; } var isJotForm = (e.origin.indexOf("jotform") > -1) ? true : false; if(isJotForm && "contentWindow" in iframe && "postMessage" in iframe.contentWindow) { var urls = {"docurl":encodeURIComponent(document.URL),"referrer":encodeURIComponent(document.referrer)}; iframe.contentWindow.postMessage(JSON.stringify({"type":"urls","value":urls}), "*"); } }; window.isPermitted = function(originUrl, whitelisted_domains) { var url = document.createElement('a'); url.href = originUrl; var hostname = url.hostname; var result = false; if( typeof hostname !== 'undefined' ) { whitelisted_domains.forEach(function(element) { if( hostname.slice((-1 * element.length - 1)) === '.'.concat(element) || hostname === element ) { result = true; } }); return result; } }; if (window.addEventListener) { window.addEventListener("message", handleIFrameMessage, false); } else if (window.attachEvent) { window.attachEvent("onmessage", handleIFrameMessage); } </script>


  • Jessica JotForm Support
    Replied on June 1, 2022 at 8:29 AM

    Hello EdgeDigital,

    Thanks for reaching out to Jotform Support. You can delete the code after </iframe>. Additionally, you can also adjust the height pixel according to your preferences too.

    Kindly give it a try and let us know how it goes.

  • EdgeDigital
    Replied on June 1, 2022 at 9:42 AM

    Thanks, that does solve the problem. However, that also adds a good deal of space below the form. Is there a way around that?

    1654090744 62976bf850890  Screenshot 10

    Also, this form is configured to use reCaptcha, not hCaptcha, but hCaptcha appears, screenshot below. Can reCaptcha be forced?

    1654090804 62976c34c2768  Screenshot 21



  • Carlo JotForm Support
    Replied on June 1, 2022 at 10:20 AM

    Hello EdgeDigital,

    Please allow me more time to check on this for you about adjusting the space on the form.

    As for your other question, I've moved that to a new thread. You can check that out here.


  • Carlo JotForm Support
    Replied on June 2, 2022 at 2:18 AM

    Hello EdgeDigital,

    Please use instead the following iframe code:

    <iframe id="JotFormIFrame-221465773204151" title="PowerSolve Download PDF" onDISABLEDload="window.parent.scrollTo(0,0)" allowtransparency="true" allowfullscreen="true" allow="geolocation; microphone; camera" src="https://form.jotform.com/221465773204151" frameborder="0" style="min-width: 100%;height: 255px;border: none;" scrolling="no"> </iframe>

    Give it a try and let us know if you need further assistance.