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.

Script Condition: identify current web user

Featured Replies

  • Newbies

Hello,

I just started with IWP on FM 8.5 but I am stucked over the simple(?) process how to identify a certain user when logged in from the web? The goal is to have user specific layouts for different entry forms.

The function Get(Username) and Get(AccountName) do only replicate the status of the FM database on the server. Even the trick described in the Manual "Use Get(ApplicationVersion)" never reveals whether a user accesses from the Web or directly.

Is there no option to identify the current web user?

Thanks, Emilia

I just created a non-stored calc field in a shared database and had it on a default layout.

Calc was simply: Get ( ApplicationVersion )

It shows obvious differences between IWP & local client connections....

I'm not sure what is not working for you?

  • Author
  • Newbies

Ok, I discovered an error with the target field of "Get(applicationVersion)" which has to be text rather than number :crazy2: Now I get "Filemaker Web" which is as expected, thanks!

However Get(Username) and Get(Account) are not web-compatible as just realised :)

so there is no way to identify a user...?

I just tried an un-stored calc field (Get(AccountName)) on my default layout and logged in as a user on the shared database and the field accurately held the account name of the logged-in user, as expected.

Verify text field as you did before, and try an un-stored field value in case you're having a current-data refresh issue (I run into them occasionally, especially on fields like this that can change for each user)

  • Author
  • Newbies

Thanks for the try which convinced me that the error might be on my side - it turned out to be a too restrictive access privileges for the user account. After I corrected that both Get(AccountName) and Get(username) provide the expected result. Interesting though that these functions are marked as non web-compatible..

Thanks, emilia

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.