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

I currently have a solution, where I have different layouts available to different users, based on there priviliges.

What I would llike it to do is when you login and your username/password is correct, execute this script. And when its incorrect execute another script.

I tried using the Get(LastMessageChoice), but then realized that was only good for custom dialog boxes.

If anyone could help me get on the right path it would be appreciated.

Thanks

Jeff England

[email protected]

What I would llike it to do is when you login and your username/password is correct, execute this script. And when its incorrect execute another script.

Sorry. This doesn't make sense. If a user provides an incorrect log-in, then the user is not logged in to the file. And if the user is not logged in to the file, none of the file's functionalities, e.g. scripts, messages, and so forth are available.

Steven

  • Author

Sorry my original question didnt make sense.

When the file is opened, the user is logged in as a user who can only view records.

I then have other sections where records can be created and an area where records can be edited. It is essential that I am able to see who created and modified the records. So everytime a user enters a certain area they are prompted to login (using the re-login script step).

However when you are logging in filemaker gives the user the option to cancel the log in. If the user chooses cancel the script continues.

This is what I would like, if the user is to click cancel, have a script run, if they log in incorrectly run another script, and when they log in correctly run another script.

Hopefully that made a little more sense :tongue2:

Jeff England

[email protected]

I'd recommend changing your system so that all users are authenticated when the file is opened. No more logging in with a general read-only password! When the system knows who you are, it can show just the data you have access to, and tag any logs with your information as you view or create records.

  • Author

Well I have seemed to have found a solution to my problem. Before running my Re-Login script step, I turned on the error capture. After that was on I used the Get(LastError) to see what errors came up when I did certain things.

After testing out all the combinations I believe I have something working that I am now happy with.

Thanks for the help everyone

Jeff England

[color:red]Pay attention to what Ender said. From your description of your process here, I believe it would be possible for an unauthorized user to extract every piece of data in your database with considerable ease.

Steven

Yes, pay attention to what "Old Advance Man" -- how did you come up with that steven, i mashed mine in on the keyboard and thats what it came up with -- says - he is the authority on this sort of thing, plus it just doesn't seem right leaving all your data exposed like that... but also try and look at it from a users perspective, would you want to constanty log in from section to section?

I do not understand what you mean. If you log in correctly, as Ender describes, you should not again be presented with a credentials challenge unless the system has been specifically configured to issue such a challenge.

Steven

I didn't say anything against that, i was commenting on the OP's method of authenticating everytime the user enter's a certain area.

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.