SOLVED

Re: Custom Script Question for forms

Go to solution
Exxact
Level 2

Custom Script Question for forms

On my companies website we have a script labeled as 

Exxact_0-1689268489286.png

This is the link https://go.exxactcorp.com/js/forms2/js/forms2.js . Does anyone know if this is important for Marketo? As far as I am aware Marketo does not require a custom script to enable forms on websites. 

 

Tags (4)
1 ACCEPTED SOLUTION

Accepted Solutions
SanfordWhiteman
Level 10 - Community Moderator

Re: Custom Script Question for forms

Your terminology is off. We wouldn't say "relabel" here. You're talking about loading the script from an alternate domain or hostname.

 

Yes, you can load the Marketo form embed from either your Primary LP domain or any valid Domain Alias. And both of those domains are already set up correctly in DNS, so you can use either one.

 

P.S. Deferring the Forms 2.0 script is dangerous unless you understand how defer works.

View solution in original post

5 REPLIES 5
SanfordWhiteman
Level 10 - Community Moderator

Re: Custom Script Question for forms

That's the Forms 2.0 library. It's critical for all Marketo forms, not "custom" at all.

Exxact
Level 2

Re: Custom Script Question for forms

Thanks for replying to my question. I have a follow up question. We currently have two websites and I am assuming we will need to have this Form 2.0 library on both. Is there a way we can have the library on both website but labeled differently to each respective website?

SanfordWhiteman
Level 10 - Community Moderator

Re: Custom Script Question for forms

Not sure what you mean by "labeled differently" - the Marketo forms embed code always includes the Forms 2.0 library <script>, plus a <form> element and an initialization <script> tag that loads the form.

 

What exactly are you trying to accomplish? Please be detailed.

Exxact
Level 2

Re: Custom Script Question for forms

This is the Forms 2.0 library for the Exxact website https://go.exxactcorp.com/js/forms2/js/forms2.js .

Exxact_0-1689294533747.png

I would like to either create or "re-label" the Forms 2.0 library to https://go.sabrepc.com/js/forms2/js/forms2.js .

The image below is the the source code for our SabrePC website

Exxact_1-1689294567827.png

 

 

SanfordWhiteman
Level 10 - Community Moderator

Re: Custom Script Question for forms

Your terminology is off. We wouldn't say "relabel" here. You're talking about loading the script from an alternate domain or hostname.

 

Yes, you can load the Marketo form embed from either your Primary LP domain or any valid Domain Alias. And both of those domains are already set up correctly in DNS, so you can use either one.

 

P.S. Deferring the Forms 2.0 script is dangerous unless you understand how defer works.