crazylegs Posted June 15, 2002 Posted June 15, 2002 I am working with FileMaker 5.5. I have to fields, field-1 and field-2 What I want is: if field-1 contains the word "Leak" then field-2 must be filled in with "Yes, No or Not Required" which is selected from a popup menu. if field-1 is empty then field-2 should be empty can someone please help with a suggestion
The Bridge Posted June 15, 2002 Posted June 15, 2002 Try this on for size, it seems to work well in FMP 5.0: This is Validation by Calculation for Field 2: If (not IsEmpty (Field 1), PatternCount (Field 1, "Leak") = PatternCount (ValueListItems (Status (CurrentFileName), "vl_Yes_No_Not_Required") & "
crazylegs Posted June 17, 2002 Author Posted June 17, 2002 Peter below are my results It is not working correctly. If field-1 is empty field-2 must also be empty (this part works). But if field-1 contains the word "Leak" field-2 DOES require data, but not what's in my Value List which is "Yes, No, Not Required" The name of the Value List is "Leaks Required" Script I Used: If( not IsEmpty(Reg Scope Of Work {leak}), PatternCount(Reg Scope Of Work {leak}, "Leak") = PatternCount (ValueListItems (Status(CurrentFileName), "vl_Yes_No_Not_Required") & "
The Bridge Posted June 17, 2002 Posted June 17, 2002 Change the "vl_Yes_No_Not_Required" to the name of your value list (including the quotation marks). Let me know if this works.
crazylegs Posted June 18, 2002 Author Posted June 18, 2002 The final script If( not IsEmpty(Reg Scope Of Work {leaks}), PatternCount(Reg Scope Of Work {leaks}, "Leaks") = PatternCount(ValueListItems(Status(CurrentFileName), "Leaks Required") & "
The Bridge Posted June 18, 2002 Posted June 18, 2002 This works great Thanks a lot, I got in a little over my head on this project. Glad to hear it. It's nice to have one's validations, er, validated.
Recommended Posts
This topic is 8199 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