Jump to content

evaluate field then label, otherwise slide


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

Recommended Posts

Hi: I checked my trusty book, 'FileMaker Pro 8 THE MISSING MANUAL', and it's missing all kinds of things.

I have three rows of data in the body - data1 to data3. Data1 always appears in every record and there's a mix of data2 and data3 appearing. I would like to label the data on the same row in the body of the layout only if there is data present. That way, if there's no data, the fields and labels don't print and everything slides up. In the example provided, the calc doesn't work, can anyone help? Thanks in advance! Maybe there's a better way to do this?

Labels.ZIP

Link to comment
Share on other sites

You have a syntax error in your calculation. Try instead:

If ( not IsEmpty ( Data2 ) ; "Datalabel2" )

You can also combine all labels in a single calculation field:

"Label 1" &

Case ( not IsEmpty ( Data2 ) ; "¶Label2" ) &

Case ( not IsEmpty ( Data3 ) ; "¶Label3" )

Adjust the field's line spacing to align each label with its data field.

Link to comment
Share on other sites

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