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 a field after entry

Featured Replies

Is there a way to lock a field after an entry has been made? Actually, what I really want to know is if the field can be locked and unlocked based on the contents of a separate field?

Does that make sense?

Thanks

Ken

You can look at using [FMP-If:] [[FMP-Else] statements. This could determine if the field is presented as an <input> tag or just text on the page.

All the best.

Garry

ps Whoops, thought I was in the CDML section!

[ February 03, 2002, 05:26 PM: Message edited by: Garry Claridge ]

Go to layout, and in the FILED FORMAT option of the filed, uncheck the ALLOW ENTRY INTO FIELD button. After that, make an script that runs the user through them. If the field number is small you dont even need a loop in the script.

Did you get it?

Interested in knowing if or how you've worked this out.

The best I have come up with for the same type of situation is a second layout with locked fields and navigating with a go to "layout number from field" and setting that field as an If/Then based on the entry in another field

  • Author

Thanks for all the replies.

Philland: Actually, what I did was very similar to the solution you had. I attached a script to the button that goes to the layout in question. The script checks if there is an entry in a certain field. If there has been an entry, it sends them to an identical layout (only with locked fields). So youre solution for the problem is probably one of the best ways.

Ken

  • Author

Oh, one afterthought: This way may work for the current record but one problem that still comes up.

If the active record qualifies to go to the locked layout and then you scroll up, that next record is still stuck on the locked layout, regardless.

Ken

"If the active record qualifies to go to the locked layout and then you scroll up, that next record is still stuck on the locked layout, regardless."

And vice-versa!

All the best.

Garry

If you use field validation, you can lock individual fields on a per record basis. Then you don't need to switch layouts or worry about locking all records when you only wanted to lock one (and vice versa).

Using lookups or auto-enter, you can cause fields to lock automatically after data has been entered. You can unlock those fields by clearing the lock field(s) with a script.

  • Author

Thom:

Do you think you could give me a run down on how to use the field validation? I don't know anything about it, and I'm not a big fan of the FileMaker Help.

Thanks alot

Ken

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.