How can I change the white form background color?

  • Profile Image
    deblecy
    Asked on May 21, 2015 at 08:40 AM

    Here is the code:

     

    <iframe id="JotFormIFrame" onload="window.parent.scrollTo(0,0)" allowtransparency="true" src="//form.jotformpro.com/form/51345771345961" frameborder="0" style="width:100%; height:974px; 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;case "collapseErrorPage":if (iframe.clientHeight > window.innerHeight) {iframe.style.height = window.innerHeight + "px";}break;case "reloadPage":window.location.reload();break;}};if (window.addEventListener) {window.addEventListener("message", handleIFrameMessage, false);} else if (window.attachEvent) {window.attachEvent("onmessage", handleIFrameMessage);}</script>

     

     

  • Profile Image
    KadeJM
    Answered on May 21, 2015 at 10:34 AM

    Do you mean that you want to change the background color of your jotform?

    If so please see the screenshot I have provided you with below. You can easily change the background color of your jotform from within the formbuilder when editing your form under Preferences >>> Form Styles >>> Background.

    Alternatively, this can also be done using our Form Designer feature.