Skip to main content
Participant
February 6, 2025
Question

Field Password

  • February 6, 2025
  • 1 reply
  • 109 views

Hi, All

I had a document previously created by my colleague, the text field has password code. 

var correctPassword = "A122";
resp = app.response({cQuestion: "Enter the password:", bPassword: true});
if (resp==null || resp!=correctPassword) getField("outside").setFocus();

 

Instead one password how to include an array of password example from Monday to Sunday,

and restrict used password once use cannot be re-use for another day.

Appreciate any input

 

 

1 reply

try67
Community Expert
Community Expert
February 6, 2025

First part is not too difficult. Second part is, and will rely on the user saving the file. If they don't save it, you can't save the info of which passwords were used already, unless you use a global variable, which will only work on one computer at a time, and will require the user to change some settings in the application. In short, it's quite a complex thing to set up.