Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Creating password protected text fields


Not applicable
Hello, I need to make a form that if a password is entered, all text fields are available to be filled out and if no password is entered, then only a few chosen text fields can be filled out. I have searched many places and have come close to the answer but have still fallen short of my goal.

thank you
3 Replies


Level 5
Here is one example to look at...

You can use this on a click of a button.


var pWord = "AbCdEf" //set your password

var requestpWord ="Please enter your password.")

if (pWord == requestpWord) {

this.presence = "hidden"; //hide this button

//write your code to enable all the text fields

}else {

//write your code to enable only fields tha you want.



Not applicable
Thank you so much.

It solved my problem, although when i open the document all the fields are still fillable because the document remembers my password. How can i make it so that each time i open the document it does not remember the password?

Thanks again