Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

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

Recommended Posts

  • Newbies
Posted

Hello

 

How do set up a field validation for the following scenario:

 

Field A - Drop-down list with "Good" and "Poor"

Field B - Comment text field

 

Can I force the user to enter a comment in Field B if Field A is "Poor"? 

 

I am pulling my hair out, I must be missing something in the calculation to validate the field .

 

Thanks for the help 

Posted
Can I force the user to enter a comment in Field B if Field A is "Poor"?

 

Try validating Field B by a calculation =

not ( IsEmpty ( Self ) and Field A = "Poor" )

Deselect the 'Validate only if field has been modified' option.

  • Newbies
Posted

That work thanks

 

Is this still valid if I were to insert an "or" statement:

not ( IsEmpty ( Self ) and Field A = "Poor" or "Bad" )
Posted

It may be valid, but it won't do what you think it does. Try =

not ( IsEmpty ( Self ) and ( Field A = "Poor" or Field A = "Bad" ) )

Note the extra set of parentheses required because and comes before or in the default order of evaluation.

  • Like 2

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