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

Help with calculation in FM 5.5v11

Featured Replies

Hi guys!

Yes, I'm a freak still using FM 5.5v1... I hope there's someone out there who can help with this:

1.- I have a number field called "Number".

In Options -> Validation -> I want to set-up the validation by a calculation as follows:

Only accept if the number is from 20 to 30 or from 50 to 60 (only those two specific ranges).

2.- I have another number field called "Number 2".

In Options -> Validation -> I want to set-up the validation by a calculation as follows:

Only accept if the number is from 1 to 19 or from 31 to 49 or from 61 to 99 (only those three specific ranges).

What's the calculation I should write on each?

Best!

1. (number >= 20 and number <= 30) or (number >= 50 and number <= 60)

2. (number 2 >= 1 and number 2 <= 19) or (number 2 >= 31 and number 2 <= 49) or (number 2 >= 61 and number 2 <= 99)

What Daniele said - only without the parentheses.

Yes, the parentheses are not strictly necessary, but can be used to better understand the calculation. Another way to write 1. :

number >= 20 and number <= 30

or

number >= 50 and number <= 60

BTW: from 7, that calculation could even be written:

or ( number ≥ 20 and number ≤ 30 ; number ≥ 50 and number ≤ 60 )

  • Author

Hi Daniele and comment,

With and without parenthesis it doesn't work:

If I enter this:

(number >= 20 and number <= 30) or (number >= 50 and number <= 60)

Or this:

number >= 20 and number <= 30) or (number >= 50 and number <= 60

Or this:

number >= 20 and number <= 30

or

number >= 50 and number <= 60

I get the same error:

"This field cannot be used here because it would cause a circular definition"

Any ideas?

Best!

Wait a sec... Let me check something...

  • Author

My mistake, all 3 work just fine :yep: Thank you very much!

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

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.