SOLVED

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

Go to solution
jengcalendly
Level 2

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

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

1 ACCEPTED SOLUTION

Accepted Solutions
SanfordWhiteman
Level 10 - Community Moderator

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

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);
			}
		});
	}, []);

 

 

 

View solution in original post

1 REPLY 1
SanfordWhiteman
Level 10 - Community Moderator

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

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);
			}
		});
	}, []);