Navigation
This is archived content. Visit our new forum.
  • Author
    Posts
  • #1223888

    Xauntyse
    Participant

    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 –>

    #1224114

    Nabeel A
    Moderator

    Hi 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!

    #1224145

    Xauntyse
    Participant

    I 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.

    #1224150

    Xauntyse
    Participant

    Odd, 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.

    #1224449

    Jade
    Moderator

    Hi there,

    In that case, you may just use the Raw Content element since it should be able to handle JS codes.