FileMaker Coaches' Corner - Tip 7 – Slide Panel & Button Bar
Hey everyone. My name is Myles Debski, one of the coaches here with RCC.
This week I wanted to look at a cool tip with using a slide panel and a button bar instead of using a tab panel. Now in my example here, my customer actually sells insurance policies. So he has different types - health and dental; home and auto; business property and liability. And between those three there's different commission details whether that's rates etc. that he gets based on the Type of insurance policy.
Now we had these on different tabs, but it was kind
of taking up extra space. So he asked if we could hide one of these panels. So if it's Home – Health/Dental - can we hide these? I said there's not really a way to hide a tab panel, but what we can do is use a slide panel and a button bar to achieve that same functionality.
FileMaker Videos On YouTube
So I'm going to use some cooking show magic and flip over to a layout where I have this all wired in and let's look at what it does.
So here we have, if I double click on this right here, a slide control. This is located up here. You're gonna have a slide control. If I turn on these navigation dots you can see that I have these three panels. I can flip between, and I can actually name them. So if I bring over my Inspector and look. This first one’s named Health. The second one is named Home, and the third one is called Business. Now up here, this is a Button Bar. So right up here we have this button bar object which I can pull up the setup here. I see I have three of them – Health/Dental, Home/Auto, Business Prop/Liability. What I have on those you see this little icon. That means there's a hide applied to it. So if I look on this first one – Health/Dental - it says hide this button right here when the Policy Type, this field, is not Health/Dental. The same applies to these. So hide this one when it's not Home/Auto etc.
And then the last thing we did is on this Type field we
put a script trigger. That's what that little icon means. So get more info if I look at our script trigger On Object Modify, whenever this data changes this script is triggered. If we look at that super simple little script, it says If that field, Policy Type, equals “Health/Dental” then Go
to Object “Health”. That's that first one. And the same for Auto and Business, etc.
So let's see how this works. We're going to Browse Mode. As I change this Policy Type, you see at the bottom what's happening. It is going to the
object down here at our slide panel and then the button bar is hiding based on this value. So actually I would shut off these dots here and it kind of shows you how you can't even tell that you have a panel down here. The data is just changing. So this way you can build out your commission rates or other fields and basically build out this whole area. You're not losing any space and you don't even see the other two panels that are going on.
So that's it for this week's Coaches’ Corner tip. If you have any questions or are interested in our coaching program, please send an email to RCC Support
If you want to learn more about slide panels and button bars check out our video courses at LearningFilemaker.com and also make sure you download a copy of our fully unlocked solution FM Starting Point at FM Startingpoint.com
For this Coaches’ Corner tip, Myles Debski demonstrates how to use a slide panel & button bar as an alternative to trying to hide a tab panel.— FileMaker Videos (@FileMakerVideos) January 24, 2018
Download the free sample file here: https://t.co/lKEa78a6L9https://t.co/mqWyYAhlDO
FileMaker Video Training
FileMaker Videos YouTube Channel Video
What Is FileMaker 16?