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.

Text from a field as validation calculation

Featured Replies

I'm trying to use text from a second related field to define the calculation that determines if the data entered into the first field is valid.

For some reason I can't get the text to correctly evaluate as an actual calculation. It just seems to show up as text and not evaluate as a calculation....I know this is super simple, but I'm totally stumped at the moment and I'm hoping to figure this out ASAP. Does anyone have any suggestions on how to get this to work? I've tried using evaluate() but I think I'm setting the syntax wrong.

I currently have the "validate by calculation" box checked and the calculation looks like this:If(Evaluate(Substitute ( YYY10_Measure Item Validation Rules::Validation Calculation ; "X" ; GetFieldName(YYY9_Raw Results::Raw Result) )); 1; 0)

I've also tried using the following to no avail

If(Evaluate(Substitute ( YYY10_Measure Item Validation Rules::Validation Calculation ; "X" ; GetField(YYY9_Raw Results::Raw Result) )); 1; 0)If(Evaluate(Substitute ( YYY10_Measure Item Validation Rules::Validation Calculation ; "X" ; YYY9_Raw Results::Raw Result )); 1; 0)

YYY10_Measure Item Validation Rule = 5<X<10

I've tried using the Let() function, but I can't get the syntax right

Please explain what the actual validation rule is. Reading a cryptic formula (which you say doesn't work anyway) is not helpful.

  • Author

Please explain what the actual validation rule is. Reading a cryptic formula (which you say doesn't work anyway) is not helpful.

sorry, the actual validation rule in this case is the value must be greater than 5 but less than 10. I wrote this as 5<X<10 where "X" is the contents of the field in question (Raw Result)

And why must this rule be stored as text in a related record (related how?)?

The calculation you want is:

X > 5 AND X < 10

  • Author

The calculation you want is:

X > 5 AND X < 10

Yep that it did it! thanks a ton!

I'm exploring an EAV style scheme and I want to still be able to enforce validation rules defined in a "validation calculations" table that each of the records is related to

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.