December 2, 200421 yr I would like a button on my startup layout that when clicked, brings up a password screen for anyone (within the company) to enter their password (just so we know who is logging in). If a password is incorrect or if a person hits escape I want to make sure that (if the solution is a script) that the person doesn't just bypass the password and go to the password protected layout. I think the script below works, but a person can hit "Esc" and then just click to continue script without typing a password. Re-Login [] Go to Layout ["Work_Order_Entry" (Work_Order)] Any ideas? Greg
December 3, 200421 yr I haven't experimented with this, but check to see if an error code is returned when Escape is pressed. Re-Login [] Show Custom Dialog [ "Error Code", "Get( LastError )" ] If an error code is returned, check for that error code before continuing with the Go to Layout step. Chuck
December 3, 200421 yr In your open script, add the script step "Allow user abort [off]" that way users cannot cancel the script - they will go to the password screen whether they like it or not. BTW: If a user cancels an operation in FMP, the error code is "1".
Create an account or sign in to comment