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.

Help with read only record script

Featured Replies

I would like to make a check box that will allow me to make that record read only once the box is check. Can anyone please show me how

Lostboyca

The easiest way that I can tellyou is to create a navigation button that takes you to any record, and is part of any search script, that has an If/then statement that says if(box = yes), go to layout A, else layout B and create a duplicate layout with the fields formatted to not allow entry.

Phil

Or alternatively you can make one field to control access, i.e. ReadOnlyFlag , and have each field validate via a calculation like 'Case(ReadOnlyFlag = 1 , 0 , 1 )'

Or go to each field via a script that checks the ReadOnlyFlag field.

Ernst

Agreed with Ernst that validation by calc is what you need here. You can get an example in the Russ Calcs Sample in the Sample Section (at least the old version had one !).

I'd only make a little addition to what Ernst suggest if you were to set the values of fields by script. Instead of the "or" in his post, use an "and" because scripts by-pass field validation.

  • Author

I don't understand is there a way I can upload the fp5 db to you and let you modify it for me?

See attached a sample file with 2 different settings (independant demos) and the 2 different scripts I mentionned before.

Hope this helps...

ReadOnly.fp5.zip

  • Author

Great thanks it work as a charm

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.