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
BedrockMission!

Learn More

View all

Sign in to view all badges

Creating password protected text fields

Avatar

16-06-2008

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

Replies

Avatar

Avatar
Level 5
_SekharN_
Level 5

Likes

0 likes

Total Posts

246 posts

Correct Reply

0 solutions
View profile

Avatar
Level 5
_SekharN_
Level 5

Likes

0 likes

Total Posts

246 posts

Correct Reply

0 solutions
View profile
_SekharN_
Level 5

17-06-2008

Here is one example to look at...



You can use this on a click of a button.

//JavaScript

var pWord = "AbCdEf" //set your password

var requestpWord = xfa.host.response("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.

}

Avatar

17-06-2008

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