Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

112
Vistas
Form script only shows up when it's placed in footer section

So I have a really odd issue. I'm using a form app and want to embed the embed code into click funnels.

The code is the following:

<script type=“text/javascript“ src=“https://MY-DOMAIN.DE/wp-content/plugins/Anfrageformular-pro/res/scripts/af2_iframe_data.js“ data-url=“https://MY-DOMAIN.DE/“ data-content-id=“XXXX“></script>

It seems that the solution would be something like this:

"An extension that function the file wait for the elements to load, namely: <body onload="functionAllJS();"> or document.onload = function () {//HERE_CODE_JS} or window.onload = function(){//HERE_CODE_JS} "

But... I don't know what to do with that or how to use that in Clickfunnels sadly.

The only real explanation for this behavior seems to be "This is because methods and statements in JavaScript files don't work until after the elements (DOM tree) you are working on has been loaded Unlike style files that work at any time (CSS)"

But again, I wonder how to make this work now

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

Update:

Okay after I found out the html version of "window.load" it seems to be easy:

<window onload="myFunction()"><script type="text/javascript" src="https://domain.de/wp-content/plugins/Anfrageformular-pro/res/scripts/af2_iframe_data.js" data-url="https://domain.de/" data-content-id="1024" data-maps-key="key"></script>

That code makes it possible to load the form on the page directly. When I try to embed the same code on a popup that triggers once a button is clicked it still wont load the form.

Wonder if there is any other command / piece of code to make it trigger after a button was clicked

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda