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

120
Visualizações
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 à 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