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.

Validating Currency Fields

Featured Replies

Hello All,

I'm fairly new to FM. Have a question: Is there any way to validate a currency field so if the user makes a mistake and types two decimals fields i.e., one for the comma and one for the cents...have some error that just says "invalid format" or something?

Also, same thing with commas. The field is already a currency field with two commas..so some extra validation is what I'm looking for.

Thanks

You could validate for numeric-only entry. Your users shouldn't be bothering with formatting at all - they should enter the number and the field should be formatted to display the entry as currency.

  • Author

Thanks for the reply. I realized though I wasn't too clear on my original post.

When users are entering data...for example, and want to type in "1,500.25", and they accidently type in "1.500.25", filemaker accepts this but changes it to: "1.50".

Instead of FM accepting and changing the data, can it see that it was an erroneous data entry and just pop up an error?

The field is already numeric and is set to two decimals.

I'm assuming it is going to require some calculation validation? But if there is a more simple way, that would be better.

Thanks again. Hopefully I was a bit more clear.

Instead of FM accepting and changing the data, can it see that it was an erroneous data entry and just pop up an error?

Yes, if you set validation to 'Strict data type: Numeric Only'.

  • Author

Well crap. That works...sorry for such the lame question. I thought I had everything set where it needed to be. Thank you lots.

Edited by Guest

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.