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

Disable a field

Featured Replies

  • Newbies

I'm a novice & I'm trying to lock /disable a field based on the current user.

I don't want the field to disappear if the user is not authorized to modify it.  I want it to be visible to unauthorized users, but modifiable to authorized users.

 

Here's the script I'm trying to use:

If [Get(AccountName)]

If [Get(AccountName) = "boss1" or [Get(AccountName)] = "boss2"

  Else 

    Set Field [Table::Next Tab]

  End If

End If

 

6 minutes ago, Rainydayfun said:

 I want it to be visible to unauthorized users, but modifiable to authorized users.

You set this up in the users privilege set. Choose [Custom privileges …] for Records, then [Limited…] for Field Access, and make the field «view only».

Not sure what role the script is playing here.

  • Author
  • Newbies

Thank you for the quick reply.

The boss helped me.  He ended up using the inspector to create an edit box & a popup menu.  

We set the popup menu to hide if the account name isn't one of the two authorized bosses.  If it IS them, they can modify the popup.

The edit box is unmodifiable, placed on top the popup, & shows the value that one of the bosses chooses in the popup.  

You should not rely on layout measures to provide security.

What Comment says but also your script doesn't make any sense to me.

Create an account or sign in to comment

Similar Content

Important Information

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

Account

Navigation

Search

Search

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.