Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

111
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda