Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

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

Recommended Posts

Posted

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?

Posted

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?

Posted

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.

Posted

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........

Posted

Oops, I had it backwards, switch field1 for field2, I like Ugo's much better though.

Thats great now, thanks for that!!

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