+1-888-365-2779
Try Now
More in this section

Forums / Designing & Styling / Embed Marketo Form 2.0

Embed Marketo Form 2.0

7 posts, 0 answered
  1. Jonny
    Jonny avatar
    4 posts
    Registered:
    28 Aug 2014
    28 Aug 2014
    Link to this post

    I need to embed the following script of a Marketo form onto our website:

    <script src="//app-ab03.marketo.com/js/forms2/js/forms2.js"></script>
    <form id="mktoForm_1010"></form>
    <script>MktoForms2.loadForm("//app-ab03.marketo.com", "850-JUB-810", 1010);</script>

     Does anyone know how to write the above script without including the <script> tags as Sitefinity requires?

    Thanks in advance.

     

  2. Svetoslav Manchev
    Svetoslav Manchev avatar
    735 posts
    Registered:
    07 Dec 2016
    02 Sep 2014
    Link to this post
    Hi Jonny,

    The Marketo settings are under: Administration » Connector for Marketo.
     
    If you need to use scripts on a Page/s you can add this code in a Master page and base the Page templates on it.

    Alternatively, in case you want to add a script tags in the editor of the backend, you could check this blog post or use a JavaScript widget.

    Regards,
    Svetoslav Manchev
    Telerik
     
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
     
  3. Jonny
    Jonny avatar
    4 posts
    Registered:
    28 Aug 2014
    02 Sep 2014 in reply to Svetoslav Manchev
    Link to this post

    Thanks Svetoslav,

    I would like to add the script using the JavaScript widget, however, it requires that I remove the <script> tags in the code. How would I write the above code without <script> tags?

    Also, I don't see the "Connector for Marketo" on our instance. We do have the enterprise package. 

    Thanks,

    Jonny

  4. Jonny
    Jonny avatar
    4 posts
    Registered:
    28 Aug 2014
    05 Sep 2014
    Link to this post

    Any help would be appreciated.

  5. Pavel Benov
    Pavel Benov avatar
    341 posts
    Registered:
    14 Mar 2016
    10 Sep 2014
    Link to this post
    Hi Jonny,

    I have provided an answer in the following forum thread:

    http://www.sitefinity.com/developer-network/forums/general-discussions-/adding-script-tags-for-forms-0e11056ae615

    Regards,
    Pavel Benov
    Telerik
     
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
     
  6. Jonny
    Jonny avatar
    4 posts
    Registered:
    28 Aug 2014
    10 Sep 2014 in reply to Pavel Benov
    Link to this post

    Hi Pavel,

     Unfortunately, there's a glitch with that thread. Nothing shows up. I can't read anything. Could you post what you placed in this thread?

     Thanks so much.

  7. Pavel Benov
    Pavel Benov avatar
    341 posts
    Registered:
    14 Mar 2016
    10 Sep 2014
    Link to this post
    Hello Jonny,

    Here is my reply from the other thread:


    Hello Jonny,

    By definition script tags are required in order to execute Javascript logic. Our Javascript widget does not need them since it wraps all logic inside it in script tag that is why you need to remove them when using it. 

    Additionally I believe you will experience problems with the form tag as well since Sitefinity is an asp.net webform application and by asp.net standards it can only consist of a single form tag on the page. 

    Also I have found the following forum thread you have opened:

    http://www.sitefinity.com/developer-network/forums/designing-styling/embed-marketo-form-2-0

    On the Marketo module - Please go to Administration->Modules & Services and enable the Marketo Connector.



    Regards,
    Pavel Benov
    Telerik
     
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
     
7 posts, 0 answered