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.

making a calc field unique?

Featured Replies

I have a patient info db in FMP 5.5. Firstname, lastname, and a calc field for wholename. I want the user to get some sort of message if s/he enters a patient twice. I can't seem to figure out how to validate a calculation field as having to be unique. I tried a text field with autoenter data (wholename) validating it as unique but that doesn't work. You need to actually enter something in the field to make it validate. It isn't really practical to script it (although I wrote one that works) unless I can trigger the script upon exiting a field. Even then, the user must tab out of the "comparison" field. Double entries are a nightmare for us. Any suggestions?

Define a self-join relationship "SameName":

wholename = ::wholename

Validate lastname (by calculation, validate always) =

not Count( SameName::PatientID )

  • Author

Thank you- this does work upon "commital" of the record. Too bad we can't do "floating" value lists. That would be cool.

It should work like any other field validation. Make sure that wholename is a calc field (not auto-enter), and try checking "Validate only if field has been modified".

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.