Inline Form markup breaks after reload.
-
I’m using the inline form option (
define( 'PARDOT_FORM_INCLUDE_TYPE', 'inline' );) in the plugin in order to be able to use certain tracking features.It seems to work on the first load but on subsequent loads, the scripts in the head are misconfigured and sometimes the html is exposed as text. The result is that the correct scripts aren’t loaded and so the form fails.
One of the script tags is pointing to an obviously wrong src
<script type="text/javascript" src="https://go.pardot.com/customer/en/portal/articles/2126621-default-form-style-classes-reference type=" text="" javascript"="">There are the following console errors:
2126621-default-form-style-classes-reference%20type=:1 Failed to load resource: the server responded with a status of 404 (Not Found) (index):1421 Uncaught SyntaxError: Invalid or unexpected token (index):1429 Uncaught ReferenceError: pardot is not definedIf I clear the cache and reload, the form loads correctly again.
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
The topic ‘Inline Form markup breaks after reload.’ is closed to new replies.