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.
Juggernaut

Restoring a field's default value on NULL

Featured Replies

Hello! I know how to get Filemaker to insert a default value into a field.

I'd like it to restore the default value if a user enters a different value and later deletes it: i.e., if the value of a field is ever null, then FM should immediately set it to the default value (maybe "unknown").

Can anyone help me out?

Set your field up as an auto enter calc and try this

Case(not Isempty(tester);tester;"Unknown")

where tester is the name of the field you want to affect

That should display whatever is in the field or 'unknown' if someone tries to leave it empty. It will also auto enter 'unknown' into the field on creation of a record

Make sure to mark your calc as unstored

HTH

Phil

  • Author

Thanks, Phil, looks great.

What does it mean to set a calculation as "unstored"?

Glad it works.

Unstored means that the result is only calculated when needed

Phil

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.