-
AuthorPosts
-
October 20, 2016 at 8:51 am #1223888
I’m developing a site on a local server and seem to be running into issues with the generated code from logiforms. I’ve copied the code here that the form builder generated. I copy/pasted it into the custom JS on cornerstone as is, but it does not seem to work.
I’m wondering if there are unnecessary tags in the code that are producing the hiccup.
<!– logiforms.com integration code – copy and paste anywhere on your page –>
<script type=”text/javascript”>
var formscript = ((document.location.protocol == ‘https:’)?”https://” : “http://”) + ‘forms.logiforms.com/v3/build/ext/formProxy-min.js’;
document.write(unescape(“%3Cscript src='” + formscript + “‘ type=’text/javascript’%3E%3C/script%3E”));
</script><script type=”text/javascript”>
FormProxy = new FormProxy({
// user editable
resizeOnDemand : true,
scrollTop : true,
height : 500,
width : ‘100%’,
scrolling : ‘no’,
marginWidth : 0,
marginHeight : 0,
frameborder : 0,
vspace : 2,
hspace : 2,
params : ”,
// system properties
formviewid : 0,
hid : 347083,
fid : 75130,
eid : 32975,
eid2 : 8,
secureform : 0,
rootformurl : ‘https://forms.logiforms.com/’,
mode : ‘standard’
});
</script>
<!– end logiforms.com integration code –>October 20, 2016 at 11:28 am #1224114Hi there,
Thanks for writing in! Remove the
<script></script>
tags from your code and then add it in your Cornerstone’s JS.Let us know how this goes!
October 20, 2016 at 11:54 am #1224145I went ahead and did that, so it looks like:
<!– logiforms.com integration code – copy and paste anywhere on your page –>
var formscript = ((document.location.protocol == ‘https:’)?”https://” : “http://”) + ‘forms.logiforms.com/v3/build/ext/formProxy-min.js’;
document.write(unescape(“%3Cscript src='” + formscript + “‘ type=’text/javascript’%3E%3C/script%3E”));FormProxy = new FormProxy({
// user editable
resizeOnDemand : true,
scrollTop : true,
height : 500,
width : ‘100%’,
scrolling : ‘no’,
marginWidth : 0,
marginHeight : 0,
frameborder : 0,
vspace : 2,
hspace : 2,
params : ”,
// system properties
formviewid : 0,
hid : 347083,
fid : 75130,
eid : 32975,
eid2 : 8,
secureform : 0,
rootformurl : ‘https://forms.logiforms.com/’,
mode : ‘standard’
});<!– end logiforms.com integration code –>
Alas, it is still not displaying on the page. The cornerstone page I”m using has no content on it otherwise.
October 20, 2016 at 11:57 am #1224150Odd, I found that it works if I copy the complete code into a raw content element on the page, but not if I attempt to use the custom JS for the page.
October 20, 2016 at 3:39 pm #1224449Hi there,
In that case, you may just use the Raw Content element since it should be able to handle JS codes.
-
AuthorPosts