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.

Locking all fields on layout?

Featured Replies

I know this has been asked so many times...

Is there a way to lock fields on a layout so users may not change the data after a button or switch is activated (clicked)

I have more than 20 fields on some layouts....

Thank you

To truly lock edit of fields, you would use FM's Security and create an access rule that limits edit. For example, if there is a field in the record, "flag_Locked," then the access calc would be, allow edit if flag_Locked≠1. How you set flag_Locked is up to you. You could have anything from the field on the layout, formatted as a checkbox with a value list of 1, to an elaborate script that prints, asks the user if they want to lock the record, and then if yes, sets this flag field.

I typically create two layouts, one with all the data entry interface (buttons, portal "add row" buttons, delete row buttons) etc, and one without all that - the "locked" layout. I also create a nav script that if flag_locked =1, go to Locked layout.

  • Author

Two questions: but first thank you for your reply

1) where is the flag lock? Is it when you create the field under options?

2) the duplicate layout --- doe this have the same relationships to original and can I just copy and past the original layout to make the second?

Just a thought will a script trigger work in a case of locking the field based off off a locking field?

Thank you.

Flag lock is a field you create.

Why copy paste? Duplicate the layout.

Why ask? Why not do it and tell us the result?

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.