damo Posted March 20, 2005 Posted March 20, 2005 I have a form in which users must enter data into a series of fields. I want to make sure that users have to enter information into all relevant fields. It should work as follows; If a user enters data into "field 2" they must also complete "field 1". At the moment many users are not doing this. Can anyone suggest a solution?
damo Posted March 20, 2005 Author Posted March 20, 2005 I have a form in which users must enter data into a series of fields. I want to make sure that users have to enter information into all relevant fields. It should work as follows; If a user enters data into "field 2" they must also complete "field 1". At the moment many users are not doing this. Can anyone suggest a solution?
dkemme Posted March 23, 2005 Posted March 23, 2005 In define fields for field 2 validation try something like: Case ( Count (Field 1) ; Case ( Count (Field 2) ; 1 ; 0 ) ; 1 ) The first case looks for anything in field 1, if so then looks for something in field 2, if so returns a 1, if not a 0. If nothing in Field 1 a zero is returned, unless both fields are empty nothing is returned, which works also. I'm sure a real programmer could present a much more elegant method.
Ugo DI LUCA Posted March 23, 2005 Posted March 23, 2005 Hi, What about validating field2 with a calculation not IsEmpty(field1) strict + message inviting the users to enter a value in field1
damo Posted March 24, 2005 Author Posted March 24, 2005 Edit: Spoke too soon. Validation does not fail if the conditions are not met, therefore the user can still get away with not entering data in field 1, when they have entered data into field 2. Maybe I've missed something........
dkemme Posted March 28, 2005 Posted March 28, 2005 Oops, I had it backwards, switch field1 for field2, I like Ugo's much better though.
damo Posted March 28, 2005 Author Posted March 28, 2005 Oops, I had it backwards, switch field1 for field2, I like Ugo's much better though. Thats great now, thanks for that!!
Recommended Posts
This topic is 7442 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