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

    Can't Clone Form using Direct Link?

    Asked by wakinggirl on February 16, 2015 at 11:46 AM

    when i click on a direct link for a form:

     

    http://form.jotform.us/jsform/50066192458154

    all i see is:

     

    function FrameBuilder(formId,appendTo,initialHeight,iframeCode){this.formId=formId;this.initialHeight=initialHeight;this.iframeCode=iframeCode;this.frame=null;this.timeInterval=200;this.appendTo=appendTo||false;this.formSubmitted=0;this.init=function(){this.createFrame();this.addFrameContent(this.iframeCode);};this.createFrame=function(){var tmp_is_ie=!!window.ActiveXObject;var htmlCode="<"+"iframe onload=\"window.parent.scrollTo(0,0)\" src=\"\" allowtransparency=\"true\" frameborder=\"0\" name=\""+this.formId+"\" id=\""+this.formId+"\" style=\"width:100%; height:"+this.initialHeight+"px; border:none;\" scrolling=\"no\"></if"+"rame>";if(this.appendTo===false){document.write(htmlCode);}else{var tmp=document.createElement('div');tmp.innerHTML=htmlCode;var a=this.appendTo;document.getElementById(a).appendChild(tmp.firstChild);} this.frame=document.getElementById(this.formId);if(tmp_is_ie===true){try{var iframe=this.frame;var doc=iframe.contentDocument?iframe.contentDocument:(iframe.contentWindow.document||iframe.document);doc.open();doc.write("");} catch(err){this.frame.src="javascript:void((function(){document.open();document.domain=\'"+this.getBaseDomain()+"\';document.close();})())";}} this.addEvent(this.frame,'load',this.bindMethod(this.setTimer,this));var self=this;if(window.chrome!==undefined){this.frame.onload=function(){try{var doc=this.contentWindow.document;var _jotform=this.contentWindow.JotForm;if(doc!==undefined){var form=doc.getElementById(""+self.formId);self.addEvent(form,"submit",function(){if(_jotform.validateAll()){self.formSubmitted=1;}});}}catch(e){}}}};this.addEvent=function(obj,type,fn){if(obj.attachEvent){obj["e"+type+fn]=fn;obj[type+fn]=function(){obj["e"+type+fn](window.event);};obj.attachEvent("on"+type,obj[type+fn]);} else{obj.addEventListener(type,fn,false);}};this.addFrameContent=function(string){string=string.replace(new RegExp('src\\=\\"[^"]*captcha.php\"><\/scr'+'ipt>','gim'),'src="//api.recaptcha.net/js/recaptcha_ajax.js"></scr'+'ipt><'+'div id="recaptcha_div"><'+'/div>'+'<'+'style>#recaptcha_logo{ display:none;} #recaptcha_tagline{display:none;} #recaptcha_table{border:none !important;} .recaptchatable .recaptcha_image_cell, #recaptcha_table{ background-color:transparent !important; } <'+'/style>'+'<'+'script defer="defer"> window.onload = function(){ Recaptcha.create("6Ld9UAgAAAAAAMon8zjt30tEZiGQZ4IIuWXLt1ky", "recaptcha_div", {theme: "clean",tabindex: 0,callback: function (){'+'if (document.getElementById("uword")) { document.getElementById("uword").parentNode.removeChild(document.getElementById("uword")); } if (window["validate"] !== undefined) { if (document.getElementById("recaptcha_response_field")){ document.getElementById("recaptcha_response_field").onblur = function(){ validate(document.getElementById("recaptcha_response_field"), "Required"); } } } if (document.getElementById("recaptcha_response_field")){ document.getElementsByName("recaptcha_challenge_field")[0].setAttribute("name", "anum"); } if (document.getElementById("recaptcha_response_field")){ document.getElementsByName("recaptcha_response_field")[0].setAttribute("name", "qCap"); }}})'+' }<'+'/script>');string=string.replace(/(type="text\/javascript">)\s+(validate\(\"[^"]*"\);)/,'$1 jTime = setInterval(function(){if("validate" in window){$2clearTimeout(jTime);}}, 1000);');var iframe=this.frame;var doc=iframe.contentDocument?iframe.contentDocument:(iframe.contentWindow.document||iframe.document);doc.open();doc.write(string);setTimeout(function(){doc.close();try{if('JotFormFrameLoaded'in window){JotFormFrameLoaded();}}catch(e){console.log("error on frame loading",e);}},200);};this.setTimer=function(){var self=this;this.interval=setTimeout(function(){self.changeHeight();},this.timeInterval);};this.getBaseDomain=function(){var thn=window.location.hostname;var cc=0;var buff="";for(var i=0;i<thn.length;i++){var chr=thn.charAt(i);if(chr=="."){cc++;} if(cc==0){buff+=chr;}} if(cc==2){thn=thn.replace(buff+".","");} return thn;} this.changeHeight=function(){var actualHeight=this.getBodyHeight();var currentHeight=this.getViewPortHeight();if(actualHeight===undefined){this.frame.style.height=this.frameHeight;if(!this.frame.style.minHeight){this.frame.style.minHeight="300px";}}else if(Math.abs(actualHeight-currentHeight)>18){this.frame.style.height=(actualHeight)+"px";} this.setTimer();};this.bindMethod=function(method,scope){return function(){method.apply(scope,arguments);};};this.frameHeight=0;this.getBodyHeight=function(){if(this.formSubmitted===1){return;} var height;var scrollHeight;var offsetHeight;try{if(this.frame.contentWindow.document.height){height=this.frame.contentWindow.document.height;if(this.frame.contentWindow.document.body.scrollHeight){height=scrollHeight=this.frame.contentWindow.document.body.scrollHeight;} if(this.frame.contentWindow.document.body.offsetHeight){height=offsetHeight=this.frame.contentWindow.document.body.offsetHeight;}}else if(this.frame.contentWindow.document.body){var isChrome=/Chrome/.test(navigator.userAgent)&&/Google Inc/.test(navigator.vendor);if(this.frame.contentWindow.document.body.scrollHeight){height=scrollHeight=this.frame.contentWindow.document.body.scrollHeight;} if(isChrome){height=scrollHeight=this.frame.contentWindow.document.height;} if(this.frame.contentWindow.document.body.offsetHeight){height=offsetHeight=this.frame.contentWindow.document.body.offsetHeight;} if(scrollHeight&&offsetHeight){height=Math.max(scrollHeight,offsetHeight);}}}catch(e){} this.frameHeight=height;return height;};this.getViewPortHeight=function(){if(this.formSubmitted===1){return;} var height=0;try{if(this.frame.contentWindow.window.innerHeight) {height=this.frame.contentWindow.window.innerHeight-18;} else if((this.frame.contentWindow.document.documentElement)&&(this.frame.contentWindow.document.documentElement.clientHeight)) {height=this.frame.contentWindow.document.documentElement.clientHeight;} else if((this.frame.contentWindow.document.body)&&(this.frame.contentWindow.document.body.clientHeight)) {height=this.frame.contentWindow.document.body.clientHeight;}}catch(e){} return height;};this.init();} FrameBuilder.get=[];var i50066192458154=new FrameBuilder("50066192458154",false,"","<!DOCTYPE HTML PUBLIC \"-\/\/W3C\/\/DTD HTML 4.01\/\/EN\" \"http:\/\/www.w3.org\/TR\/html4\/strict.dtd\">\n<html><head>\n<meta http-equiv=\"Content-Type\" content=\"text\/html; charset=utf-8\" \/>\n<link rel=\"alternate\" type=\"application\/json+oembed\" target="_blank" href=\"https:\/\/www.jotform.com\/oembed\/?format=json&amp;url=http%3A%2F%2Fwww.jotform.com%2Fform%2F50066192458154\" title=\"oEmbed Form\"><link rel=\"alternate\" type=\"text\/xml+oembed\" target="_blank" href=\"https:\/\/www.jotform.com\/oembed\/?format=xml&amp;url=http%3A%2F%2Fwww.jotform.com%2Fform%2F50066192458154\" title=\"oEmbed Form\">\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0\" \/>\n<meta name=\"HandheldFriendly\" content=\"true\" \/>\n<title>Form<\/title>\n<link target="_blank" href=\"http:\/\/d2g9qbzl5h49rh.cloudfront.net\/static\/formCss.css?3.2.5526\" rel=\"stylesheet\" type=\"text\/css\" \/>\n<link type=\"text\/css\" rel=\"stylesheet\" target="_blank" href=\"http:\/\/d2g9qbzl5h49rh.cloudfront.net\/css\/styles\/nova.css?3.2.5526\" \/>\n<link type=\"text\/css\" media=\"print\" rel=\"stylesheet\" target="_blank" href=\"http:\/\/d2g9qbzl5h49rh.cloudfront.net\/css\/printForm.css?3.2.5526\" \/>\n<style type=\"text\/css\">\n .form-label-left{\n width:150px !important;\n }\n .form-line{\n padding-top:12px;\n padding-bottom:12px;\n }\n .form-label-right{\n width:150px !important;\n }\n body, html{\n margin:0;\n padding:0;\n background:false;\n }\n\n .form-all{\n margin:0px auto;\n padding-top:20px;\n width:690px;\n color:#555 !important;\n font-family:\"Lucida Grande\", \"Lucida Sans Unicode\", \"Lucida Sans\", Verdana, sans-serif;\n font-size:14px;\n }\n<\/style>\n\n<script src=\"http:\/\/d2g9qbzl5h49rh.cloudfront.net\/static\/prototype.forms.js\" type=\"text\/javascript\"><\/script>\n<script src=\"http:\/\/d2g9qbzl5h49rh.cloudfront.net\/static\/jotform.forms.js?3.2.5526\" type=\"text\/javascript\"><\/script>\n<script type=\"text\/javascript\">\n var jsTime = setInterval(function(){try{\n JotForm.jsForm = true;\n\n JotForm.init(function(){\n $('input_1').rating({stars:'5', inputClassName:'form-textbox', imagePath:'http:\/\/d2g9qbzl5h49rh.cloudfront.net\/images\/stars.png', cleanFirst:true, value:''});\n });\n\n clearInterval(jsTime);\n }catch(e){}}, 1000);\n<\/script>\n<\/head>\n<body>\n<form class=\"jotform-form\" action=\"http:\/\/submit.jotform.us\/submit\/50066192458154\/\" method=\"post\" name=\"form_50066192458154\" id=\"50066192458154\" accept-charset=\"utf-8\">\n <input type=\"hidden\" name=\"formID\" value=\"50066192458154\" \/>\n <div class=\"form-all\">\n <ul class=\"form-section\">\n <li class=\"form-line\" data-type=\"control_checkbox\" id=\"id_3\">\n <label class=\"form-label form-label-left form-label-auto\" id=\"label_3\" for=\"input_3\"> Which services did we provide? <\/label>\n <div id=\"cid_3\" class=\"form-input jf-required\">\n <div class=\"form-single-column\">\n <span class=\"form-checkbox-item\" style=\"clear:left;\">\n <input type=\"checkbox\" class=\"form-checkbox\" id=\"input_3_0\" name=\"q3_whichServices[]\" value=\"Tile & Grout Cleaning\" \/>\n <label for=\"input_3_0\"> Tile & Grout Cleaning <\/label>\n <\/span>\n <span class=\"clearfix\">\n <\/span>\n <span class=\"form-checkbox-item\" style=\"clear:left;\">\n <input type=\"checkbox\" class=\"form-checkbox\" id=\"input_3_1\" name=\"q3_whichServices[]\" value=\"Carpet Cleaning\" \/>\n <label for=\"input_3_1\"> Carpet Cleaning <\/label>\n <\/span>\n <span class=\"clearfix\">\n <\/span>\n <span class=\"form-checkbox-item\" style=\"clear:left;\">\n <input type=\"checkbox\" class=\"form-checkbox\" id=\"input_3_2\" name=\"q3_whichServices[]\" value=\"Residential Services\" \/>\n <label for=\"input_3_2\"> Residential Services <\/label>\n <\/span>\n <span class=\"clearfix\">\n <\/span>\n <span class=\"form-checkbox-item\" style=\"clear:left;\">\n <input type=\"checkbox\" class=\"form-checkbox\" id=\"input_3_3\" name=\"q3_whichServices[]\" value=\"Commercial Services\" \/>\n <label for=\"input_3_3\"> Commercial Services <\/label>\n <\/span>\n <span class=\"clearfix\">\n <\/span>\n <span class=\"form-checkbox-item\" style=\"clear:left\">\n <input type=\"checkbox\" class=\"form-checkbox-other form-checkbox\" name=\"q3_whichServices[other]\" id=\"other_3\" value=\"\" \/>\n <input type=\"text\" class=\"form-checkbox-other-input form-textbox\" name=\"q3_whichServices[other]\" data-otherHint=\"Other\" size=\"15\" id=\"input_3\" \/>\n <br \/>\n <\/span>\n <\/div>\n <\/div>\n <\/li>\n <li class=\"form-line\" data-type=\"control_rating\" id=\"id_1\">\n <label class=\"form-label form-label-left\" id=\"label_1\" for=\"input_1\"> How would you rate our services: <\/label>\n <div id=\"cid_1\" class=\"form-input jf-required\">\n <div id=\"input_1\" name=\"q1_howWould\">\n <select name=\"q1_howWould\">\n <option value=\"1\"> 1 <\/option>\n <option value=\"2\"> 2 <\/option>\n <option value=\"3\"> 3 <\/option>\n <option value=\"4\"> 4 <\/option>\n <option value=\"5\"> 5 <\/option>\n <\/select>\n <\/div>\n <\/div>\n <\/li>\n <li class=\"form-line\" data-type=\"control_checkbox\" id=\"id_5\">\n <label class=\"form-label form-label-left form-label-auto\" id=\"label_5\" for=\"input_5\"> Is there anything we could have done better? <\/label>\n <div id=\"cid_5\" class=\"form-input jf-required\">\n <div class=\"form-multiple-column\" data-columnCount=\"2\">\n <span class=\"form-checkbox-item\">\n <input type=\"checkbox\" class=\"form-checkbox\" id=\"input_5_0\" name=\"q5_isThere[]\" value=\"Yes\" \/>\n <label for=\"input_5_0\"> Yes <\/label>\n <\/span>\n <span class=\"clearfix\">\n <\/span>\n <span class=\"form-checkbox-item\">\n <input type=\"checkbox\" class=\"form-checkbox\" id=\"input_5_1\" name=\"q5_isThere[]\" value=\"No\" \/>\n <label for=\"input_5_1\"> No <\/label>\n <\/span>\n <span class=\"clearfix\">\n <\/span>\n <span class=\"form-checkbox-item\" style=\"clear:left\">\n <input type=\"checkbox\" class=\"form-checkbox-other form-checkbox\" name=\"q5_isThere[other]\" id=\"other_5\" value=\"\" \/>\n <input type=\"text\" class=\"form-checkbox-other-input form-textbox\" name=\"q5_isThere[other]\" data-otherHint=\"Other\" size=\"15\" id=\"input_5\" \/>\n <br \/>\n <\/span>\n <\/div>\n <\/div>\n <\/li>\n <li class=\"form-line\" data-type=\"control_textarea\" id=\"id_4\">\n <label class=\"form-label form-label-left form-label-auto\" id=\"label_4\" for=\"input_4\"> Comments: <\/label>\n <div id=\"cid_4\" class=\"form-input jf-required\">\n <textarea id=\"input_4\" class=\"form-textarea\" name=\"q4_comments\" cols=\"40\" rows=\"6\"><\/textarea>\n <\/div>\n <\/li>\n <li class=\"form-line\" data-type=\"control_button\" id=\"id_2\">\n <div id=\"cid_2\" class=\"form-input-wide\">\n <div style=\"text-align:center\" class=\"form-buttons-wrapper\">\n <button id=\"input_2\" type=\"submit\" class=\"form-submit-button\">\n Review\n <\/button>\n <\/div>\n <\/div>\n <\/li>\n <li style=\"display:none\">\n Should be Empty:\n <input type=\"text\" name=\"website\" value=\"\" \/>\n <\/li>\n <\/ul>\n <\/div>\n <input type=\"hidden\" id=\"simple_spc\" name=\"simple_spc\" value=\"50066192458154\" \/>\n <script type=\"text\/javascript\">\n document.getElementById(\"si\" + \"mple\" + \"_spc\").value = \"50066192458154-50066192458154\";\n <\/script>\n<\/form><img src=\"\/\/events.jotform.com\/jsform\/50066192458154\" style=\"display:none\" \/>\n<\/body>\n<\/html>\n");(function(){window.handleIFrameMessage=function(e){var args=e.data.split(":");var iframe=document.getElementById("50066192458154");if(!iframe){return};switch(args[0]){case"scrollIntoView":if(!("nojump"in FrameBuilder.get)){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":if(iframe){location.reload();} break;}};if(window.addEventListener){window.addEventListener("message",handleIFrameMessage,false);}else if(window.attachEvent){window.attachEvent("onmessage",handleIFrameMessage);}})();
    form class JotForm textarea checkbox meta
  • Profile Image
    JotForm Support

    Answered by Charlie on February 16, 2015 at 12:10 PM

    Hi,

    May I know where you got the direct link? The correct link for that form is this one: http://www.jotform.us/form/50066192458154. You can copy it using this guide: http://www.jotform.com/help/42-How-to-Clone-an-Existing-Form-from-a-URL.

    Do let us know if it works.

    Thank you.

  • Profile Image

    Answered by wakinggirl on February 16, 2015 at 12:42 PM

    oh thank you!

    i got that from the source code, which worked the last time i did that...

     

    ?

  • Profile Image

    Answered by Sean on February 16, 2015 at 01:55 PM

    It appears that your issue is now resolved. On behalf of my fellow colleague, you are more than welcome for the assistance offered. Do let us know if you ever need our assistance in the future.


    Cheers!