Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 7298 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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

Posted

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

Posted

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".

This topic is 7298 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.