Newbies jono332 Posted April 1, 2014 Newbies Posted April 1, 2014 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
comment Posted April 1, 2014 Posted April 1, 2014 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 jono332 Posted April 1, 2014 Author Newbies Posted April 1, 2014 That work thanks Is this still valid if I were to insert an "or" statement: not ( IsEmpty ( Self ) and Field A = "Poor" or "Bad" )
comment Posted April 1, 2014 Posted April 1, 2014 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. 2
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now