Custom Script Question for forms | Community
Skip to main content
New Participant
July 13, 2023
Solved

Custom Script Question for forms

  • July 13, 2023
  • 1 reply
  • 2743 views

On my companies website we have a script labeled as 

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. 

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by SanfordWhiteman

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

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

 

 


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.

1 reply

SanfordWhiteman
New Participant
July 13, 2023

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

ExxactAuthor
New Participant
July 13, 2023

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
New Participant
July 13, 2023

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.