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 6565 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

I have a client who wants one field on their data base to be required only if another field is populated with certain information. Is this possible?

I know this syntax is incorrect but, Basically:

If (Field_X = "Condition_A")

Then

Field_Y ; IsRequired)

Else

Field_Y ; Not_Required)

If anyone can help I would greatly appreciate it.

Thanks,

Steve

Posted

Hi

try to put this calc into validation option of field Field_Y

Case(

Field_X = "Condition_A" and IsEmpty ( Field_Y ); 0;

1

)

Posted (edited)

<

try to put this calc into validation option of field Field_Y

Case(

Field_X = "Condition_A" and IsEmpty ( Field_Y ); 0;

1

) >>

Thank you for your reply, however this does not seem to work unless I have doen something wrong...

I have:

Case(CutAway = "c900" and IsEmpty (Solvy); 0;1)

In this case

Cutaway = the "X" Field

Solvy = the "Y" Field

"c900" is the condition that if enterered into the cutaway (X) field then the Solvy "Y" Field becomes required. If the "X "field is empty or has any other information in it, then Y is not required.

I plugged this calculation in to the "Validated by Calculation" area and created a new record. I entereed c900 into the Cutaway field, entered nothing in the solvy filed and was allowed to create a new record. I would have expeceted to get the Validation error message that the "Y" field was required, but did not. :

Have I missed something obvious?

Thanks,

Steve

Edited by Guest
Posted

This is working now....

In the Validation Tab you must:

Select: Always

And in the Calculation Specification:

Deselect: Validate only if field has been modified.

This is a very useful validation routive for me. I hope someone else will have a need for it.

Steve

Posted

...In the Validation Tab you must:

Select: Always

And in the Calculation Specification:

Deselect: Validate only if field has been modified.

Only the second is required :

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