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.

Featured Replies

This must easy given how common it is, I just don't see how.

One of the most important things in a database is ensuring that the entered data is in the correct format.

For example:

I have two fields, IP address and MAC address.

IP must be in the format of; [1-3 digits].[1-3 digits].[1-3 digits].[1-3 digits], like this 111.25.69.87

The "." must be a period, nothing else.

MAC address must be [2 hex digits]:[2 hex digits]:[2 hex digits]:[2 hex digits]:[2 hex digits]:[2 hex digits], Like this 23:0a:8d:00:23:bc

The seperator must be a colon and the alpha hex characters must be lowercase.

Where does a template or whatever exist to enforce this?

Thanks,

Jerry

Validation by calculation using the text functions should do this. The function will be long but should be straightforward. I have a database with entries which must be exactly 8 numeric characters or two specific letters followed by 6 numerics. The function is 17 lines long, but it works fine. Basically it selects each character position and verifies that the characters are within the acceptable range. If they are not a dialog is presented to the user until a valid entry is made. Scripts may also be a viable option.

  • Author

Well, that's hard to believe. But, maybe so.

I haven't been able to find any examples like that, can you either show yours or point me to some examples?

Thanks,

Jerry

What version of FMP are you using?

  • Author

Pro 7

You can use Filter to limit the characters to, lower to convert all alphas to lower case. You can use Middle to get characters and compare them to the separators. There is a good example of a telephone number formating in the FileMaker Business Tracker which can be downloaded from the FMI web site.

  • Author

Thanks.

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.