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

125
Vistas
Javascript to Hide Back Button on Google Forms & limit to one entry per IP

I am very new to google forms and it's great, but I just cannot believe there is no way to hide the back button or to limit entries to one per IP. It seems so obvious that survey or quiz creators would want these features. Surveymonkey wants to charge me $480/year for them, and I don't see a single add-on that provides them either (and if they did they would also want $100/year). Frankly given all the time I've spent trying to figure out how to do this I should have just been creating my own form, but I digress.

Anyway, is there really no way to do this using an app script? Something like

function onOpen() {
 var xpath = "//a[text()='Back']";
  var matchingElement = document.evaluate(xpath, document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
  matchingElement.style.display = 'none';
}

this returns error document is not defined.

function onOpen() {
  var ui = FormApp.getUi(); // Same variations.
  var xpath = "//a[text()='Back']";
  var matchingElement = ui.evaluate(xpath, document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
  matchingElement.style.display = 'none';
}

This gives error Cannot call FormApp.getUi() from this context.

It looks like the script is for the creation page not the view/user page?

Any pointers much appreciated!

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