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.

How to insert current user name

Featured Replies

I am having a dull moment confused.gif. I can't figure out a way to display the current user name when a user logs into the database. What I have in the upper lefthand corner of the layout is something like:

Welcome! John Doe

What is the syntax to create for just doing a simple display of the current user that is logged in? Thanks for your help in advance.

Chris

Chris,

"Current user name" means different things in different versions. What version of FMP are you using? Do you have a custom login system, or are you using the built-in FMP login? Or do you just want to see the computer's owner name?

  • Author

I am using FM 7 Developer and using just the basic FMP login.

You should have a global CurrentUserName field that you set at login. To display it, use a merge field in a text block:

Welcome <<CurrentUserName>>!

The field gets set when you login with this script step:

Set Field [ CurrentUserName ; Get(AccountName) ] //gets the account name that was used to login

or

Set Field [ CurrentUserName ; Get(UserName) ] //gets the name of the computer's owner

  • Author

That is awesome! Works like a champ! Thanks Ender!

Chris

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.