Planet PDF Forum Planet PDF Forum
  New Posts New Posts RSS Feed - app.response - password input
  FAQ FAQ  Forum Search   Register Register  Login Login

Hi, welcome to the Foxit Planet PDF Forum. If you have PDF or Adobe Acrobat questions then the right place to ask them is here, in this forum.

app.response - password input

 Post Reply Post Reply
Author
mhoney View Drop Down
New Member
New Member


Joined: 17 Dec 2013
Location: Australia
Points: 34
Post Options Post Options   Quote mhoney Quote  Post ReplyReply Direct Link To This Post Topic: app.response - password input
    Posted: 18 Dec 2013 at 7:23am
Hi,

Just chasing some assistance with my script.  I am prompting the user for a password, but want the password to display privately as type ie **** not as golf  so that no one can see what is being typed.

Is there a way to use app.response to achieve this?

Script below:

var f = this.getField("lblApproved");
var dialogTitle = "Managers Approval";
var defaultAnswer = "";
var reply = app.response("Please enter password",dialogTitle, defaultAnswer);
i
f (reply == this.getField("parlblPassword1").value) {
var cChoice = app.popUpMenu("Approved","Declined","Reset");
var status = this.getField("lblApproved");

switch (cChoice) {
case "Approved": status.value = "APPROVED";
break;
case "Declined": status.value = "DECLINED";
break;
case "Reset": status.value = "Click Me";
break;
}

} else {
app.alert("Password Incorrect, please try again");
}

Thanks.
Confused
Michael.
Back to Top
try67 View Drop Down
Senior Member
Senior Member


Joined: 15 Jul 2011
Points: 634
Post Options Post Options   Quote try67 Quote  Post ReplyReply Direct Link To This Post Posted: 18 Dec 2013 at 2:22pm
Set the bPassword parameter of the response method to true...
- Acrobat Expert - Contact me personally at try6767@gmail.com
Check out my custom-made scripts website: http://try67.blogspot.com
Back to Top
gkaiseril View Drop Down
Senior Member
Senior Member


Joined: 15 Jul 2011
Location: USA
Points: 4111
Post Options Post Options   Quote gkaiseril Quote  Post ReplyReply Direct Link To This Post Posted: 19 Dec 2013 at 3:06pm
app.response page in Acrobat JavaScript Refrence.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.10
Copyright ©2001-2017 Web Wiz Ltd.

This page was generated in 0.047 seconds.