Yet another form display issue when using ad blockers (got past the firefox issue) | Community
Skip to main content
New Participant
May 19, 2022
Solved

Yet another form display issue when using ad blockers (got past the firefox issue)

  • May 19, 2022
  • 1 reply
  • 1739 views

@sanfordwhiteman We have implemented the "firefox fix" on our forms but ad blockers like Ghostery are still blocking our form from rendering. What specific tips to you have to get around them? 

https://calendly.com/resources/webinars/getting-started-with-calendly

Thank you!

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

You‘re still inexplicably trying to use the app-*.marketo.com domain.

 

See /marketing-site/src/contentful/Widgets/Form/MarketoForm/MarketoForm.tsx:

 

 

useEffect(() => { if (window.MktoForms2) return setScriptLoaded(true); const script = document.createElement('script'); if (getBrowserName() === 'Firefox') { script.src='https://pages.calendly.com/js/forms2/js/forms2.min.js'; } else { script.src=`https://${host}/js/forms2/js/forms2.min.js`; } script.onload = () => setScriptLoaded(true); document.head.appendChild(script); const params = new URLSearchParams(window.location.search); params.forEach((key, value) => { if (urlFieldParams.includes(value)) { localStorage.setItem(value, key); } }); }, []);

 

 

 

1 reply

SanfordWhiteman
SanfordWhitemanAccepted solution
New Participant
May 19, 2022

You‘re still inexplicably trying to use the app-*.marketo.com domain.

 

See /marketing-site/src/contentful/Widgets/Form/MarketoForm/MarketoForm.tsx:

 

 

useEffect(() => { if (window.MktoForms2) return setScriptLoaded(true); const script = document.createElement('script'); if (getBrowserName() === 'Firefox') { script.src='https://pages.calendly.com/js/forms2/js/forms2.min.js'; } else { script.src=`https://${host}/js/forms2/js/forms2.min.js`; } script.onload = () => setScriptLoaded(true); document.head.appendChild(script); const params = new URLSearchParams(window.location.search); params.forEach((key, value) => { if (urlFieldParams.includes(value)) { localStorage.setItem(value, key); } }); }, []);