wmugrad28 Posted December 2, 2004 Posted December 2, 2004 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
Chuck Posted December 3, 2004 Posted December 3, 2004 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
DykstrL Posted December 3, 2004 Posted December 3, 2004 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".
Recommended Posts
This topic is 7642 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now