Hi,
I'm currently struggling with the same problem... the following Enter Event code will place the cursor inside the dialog box; however, the password text will no longer be masked. I'm still looking for a work-around...
//password protected field
xfa.host.beep("1");
var correctPassword = "your password here";
var resp = app.response({cQuestion:"PASSWORD PROTECTED FIELD", cTitle:"Protected Field", bPassword:true[xfa.host.setFocus(this.someExpression)], cLabel:"ENTER PASSWORD:"});
if(resp==null || resp!=correctPassword){
app.alert({cMsg:"THIS FIELD IS PASSWORD PROTECTED\nAND IS NOW LOCKED AND INACCESSIBLE", nIcon:0, nType:0, cTitle:"Password Failure"});
xfa.host.setFocus("your field name here");
}
Good luck,
Stefan