Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

117
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!