Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Is there a way for a script to "know" whether the last login attempt was sucsessful? I would like to use the outcome of the log in as an IF/THEN step. Something like...

IF Get (lastloginattempt) = sucsessful

perform action....

ELSE IF Get (lastloginattempt) = failed

don't allow action....

It would also have to account for the user cancelling out of a log in prompt, or treat that as a failed attempt. I know there's not a Get (lastloginattempt) but I saw a Get (lasterror) which has many error codes pertaining to passwords. I'm not sure how to write the script though since there is no error code generated if the login is successful, and the Get (lasterror) function will return some earlier error NOT pertaining to the log in.

Immediately after the login, save the get( lasterror ) into a variable.

  • Author

I've been playing around with it in a new, empty DB and I think it might work. Before I tried it, I was thinking that a sucsessful login would not generate a change in the previous 'last error' so there would be nothing to go by. Turns out that a sucsessful log in (followed by a script step that writes the last error to a variable) sets the last error value to 0.

I think I will set the variable to something other than 0 before the login script step and if it is 0 after the login step then that provides the "test" that I need to continue the script in one of two directions.

Thanks for the idea!

Immediately after the login, save the get( lasterror ) into a variable.

I think you mean "Immediately after the successful login, ...". If the login wasn't successful, then you cannot do anything. Perhaps you were thinking of re-login?

  • Author

I got it working! Thanks guys! Yes, it was re-login but I knew what he meant.

I think you mean "Immediately after the successful login, ...". If the login wasn't successful, then you cannot do anything. Perhaps you were thinking of re-login?

Yes a re-login. Unless the file has been opened we're not yet in a script.

Create an account or sign in to comment

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.