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

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

Recommended Posts

Posted

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

Posted

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.

Posted

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.

Posted

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

Posted (edited)

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

This topic is 6038 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.