These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

security restriction on Form button

JPM
Registered: Sep 19 2007
Posts: 14

Greetings -
 
Is there a way to put some type of security on a Form button? I would like to restrict who can use it.
 
Thanks.

My Product Information:
Acrobat Pro 8, Windows
pddesigner
Registered: Jul 9 2006
Posts: 858
You did not mention if the form was developed in LiveCycle or Acrobat.

Use this JavaScript for the button (in Acrobat) for the Action property for the mouse up event:

var pwd = app.response("What is the password?","Security Check","",true)

if (pwd != null) {
if (pwd == "Vegas") {
this.mailDoc(true, "dump [at] epubservice [dot] com", "", "", "Translation Service Survey");
app.beep()
app.alert("Your survey has been submitted." , 1)
}
else
app.alert("That is not the password!\n\n(Hint: It's the Acrobat User Group location in Nevada where you learn all there is to know about Adobe Acrobat and have fun with your money.)")

}

Note: Change the password (pwd), email address (dump [at] epubservice [dot] com), Subject(Translation ..) and alert message to your requirements. Only persons with the password will be able to open or submit your form.

My favorite quote - "Success is the ability to go from one failure to another with no loss of enthusiasm.