Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

Restoring a field's default value on NULL


This topic is 6597 days old. Please don't post here. Open a new topic instead.

Recommended Posts

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?

Link to comment
Share on other sites

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

Link to comment
Share on other sites

This topic is 6597 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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