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.

Locking a Record

Featured Replies

I have a database that I use to manage Projects for clients. I am able to set Status to Pending or Open or Closed. I want to create a script that checks to see what the status is. If status = closed then the current record should lock itself and not be modifiable. I want to be able to change the status back to open if need be but if the status is closed then the rest of the field in the current record are not modifiable. Basically I have no clue how to lock the current record at all and then base it on these conditions. Any help would be great. Thanks.

There are a couple different approaches. First, you could use record-level access privileges to decide if the record can be edited. This would be setup in Define->Accounts & Privileges, under the privilege set's access privileges for Records (then for the desired table, select "Limited.." in the pull down at the bottom.) Use a calc, like: Status <> "Closed", which evaluates to true for the other values of Status.

Another approach is to use separate layouts for Data Entry and View, and have the navigation scripts control which layout is used based on the Status:

If [ Status = "Closed" and get(privilegesetname) <> "[Full Access]") ]

Go to Layout [ View Project ]

Else

Go to Layout [ Edit Project ]

End If

Create an account or sign in to comment

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.