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.

Conditionally change field behavior or make invisible

Featured Replies

Hi,

I have a field that I only want to allow data entry into if it is empty. Is this possible? If so, what is the best way?

Hal

I suppose you could create a field level access priv restriction. Or, you could have an Edit button next to the field (the field's behavior has Browse mode unchecked). The Edit button could check priv set (admin only, for example) or show some sort of dialog, then popup an edit layout.

What's the real-life scenario?

  • Newbies

If it's one field I would agree that the button is the way to go. I have the button point to a script that runs as admin and the users have no edit access to that field. Script reads as follows:

If [isEmpty ( Table::Field)]

Show Custom Dialog ["Title"; "Please enter text for field:"; Table::Field

Commit records/Requests [No dialog]

End If

My problem is that I now have 30 some fields on a single layout that need to be able to be changed if it is empty, but not changed if someone has already put in data. All fields are text fields. I'm really disappointed they don't have an "edit once" option for a field.

As far as I can tell the field lvl access privileges are Modify, view only, or no access, there is no custom restrictions. I implemented something similar where there was a lock button/script that would only change the value of a lock field. Edit privileges checked against that field, but it effects the entire layout, not individual fields. In this case I have about 100 fields and only half need to be protected.

There must be a better way to do this. Anyone have better ideas?

Create an account or sign in to comment

Important Information

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

Account

Navigation

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.