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

257
Vistas
Insert a hidden field into form using JS

I am trying to create and populate a hidden field on the form using google tag manager and JS.

It worked fine on one group of forms enter image description here

However, it doesn't work on this one. enter image description here

What do I need to modify to insert the hidden field on 2 nd form (besides the obvious "append to the element" part? Thank you!

Here is the script:

  
  var input = document.createElement("input");

input.setAttribute("type", "hidden");

input.setAttribute("name", "GAIDinserttest");

input.setAttribute("value", "{{extract GAID-GA Client ID}}");

//append to form element  .
document.getElementById("gform_page_2_1").appendChild(input);
  
  
</script>
about 4 years ago · Juan Pablo Isaza
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