Hide Object When Calculations

Sometimes it's nice to revisit the basics and make sure you've covered all your bases when it comes to what you can do with certain features.

In this video, I take a good look at using the Hide Object When calculation and cover the various options I'm familiar with. This includes uses for the most basic True/False to an increasingly complex calculation which starts adding more and more operators. I also go over the use of containment objects and how they can simplify the use of the Hide Object When calculation.

Have you mastered the use of the Hide Object When calc? Are you integrating uses which account for the user's environment? If not, then give yourself a few minutes and brush up on using this powerful feature of FileMaker development.

AttachmentSize
ContactsModified.zip91.63 KB
Tags:

Comments

the list is not empty when either first or last name is entered
your would have to use list count

Peter Cortiel

Not a good combination. If you look at the sample file you'll see I switched to using a ValueCount around the List to ensure I had two values when expecting two values.

Thanks for the feedback and the catch. Hopefully others will figure it out and not read the solution in the comments. ;)

-- Matt Petrowsky - ISO FileMaker Magazine Editor

I have a question following your explanation in the video “Hide Object When Calculations.”
I’m trying to hide a tab based on a specific condition, but it doesn’t work, at least not for me.
So I created a second tab control and placed it exactly on top of the first one.
Using a script trigger, I hide one of the two at a time. The only difference between the two tab controls is the number of tabs.

Now I’ve noticed that if both tab controls are exactly the same size and positioned directly on top of each other, they seem to merge. In that case, only one of the ‘hide’ calculations works, and the other one seems to disappear.

Why is this happening? And how would you solve this?

Martin Verrips