How to Password Protect a Google Form

Published in: Google Forms

When you create a form using Google Forms, the form is public by default meaning it can be filled out by anyone on the Internet as long as they know the web URL of that form. If you are a Google Apps user, you can put the form behind a login screen such that only members of your domain /organization can access and fill out that form but this feature is not available to other users who have regular Google accounts.

Now there can be a scenario where you may want to password-protect your Google Forms and restrict access to certain users who have been provided the password. This feature is obviously not available in Google Forms but we can use a simple workaround that will prevent users from entering data into that form if they do not know the password.

This Google Form is password protected This Google Form is password protected

Create a Password Protected Form

Before we get into the implementation details, let’s go on a test drive. Open this Google Form and you’ll notice that it has a password field. You’ll have to enter the correct password* to see the actual form else it won’t let you move past the first screen.

PS:The form’s password is (case sensitive, no spaces please)

What we have done here is split the actual form into two pages. The first page of the form has the password input field and only when the user enters the correct password are they taken to the second page that contains the actual form. Here’s a step by step guide:

  1. Go to the Google Forms editor and add a text field. Call it “Password” and make it a required question as shown in the illustration below.
  2. Expand the Data Validation section and choose Regular Expression -> Matches from the dropdown.
  3. In the input field enter the password that you would like the user to enter and enclose this string between ^$. For instance, if you are setting the form password as HelloWorld, enter ^HelloWorld$ in the validation input field.
  4. Next click the Inert menu and choose Page Break. This is the second page where you can add your regular form fields. Save the form.

Password Protect your public Google Forms Password Protect your public Google Forms


We are essentially using regular expressions to validate user input in the Google Form and proceed only if it matches a custom value.

The validation happens in the client’s browser and therefore this approach is more of a workaround and not a bullet-proof solution. Anyone with fair understanding of HTML can figure out the form’s password by either looking at the HTML source of the form or through Chrome Dev Tools.

📮  Subscribe to our Email Newsletter for Google tips and tutorials!
Published in: Google Forms

Looking for something? Find here!

Meet the Author

Web Geek, Google Developer Expert
Amit Agarwal

Amit Agarwal is a Google Developer Expert in Google Workspace and Google Apps Script. He holds an engineering degree in Computer Science (I.I.T.) and is the first professional blogger in India. He is the developer of Mail Merge for Gmail and Document Studio. Read more on Lifehacker and YourStory

Get in touch

Google Add-ons

Do more with your Gmail and GSuite account

We build bespoke solutions that use the capabilities and the features of Google Workspace for automating business processes and driving work productivity.

  1. Mail Merge with Attachments
    Send personalized email to your Google Contact with a Google Sheet and Gmail
  2. Save Emails and Attachments
    Download email messages and file attachments from Gmail to your Google Drive
  3. Google Forms Email Notifications
    Send email notifications to multiple people when a new Google Form is submitted
  4. Document Studio
    Create beautiful pixel perfect documents merging data from Google Sheets and Google Forms
  5. Creator Studio for Google Slides
    Turn your Google Slides presentations into animated GIFs and videos for uploading to YouTube