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.
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.