FileMaker 13 made a large push into the single page application idea. In the Web world, this is an ideal way to build an application, as your user (and their data) is all done with the interaction on one page. To play well with this concept in FileMaker, a lot of new features were introduced in the past few versions of FileMaker, such as popovers and slide controls.
One of the most important (if not the most important) layout/design features added was the addition of the ability to calculate the display of an object. Prior to FileMaker13, you had to either use separate layouts or complicated conditional formatting tricks to make layouts change as a user interacts with them. Now, with the addition of the Hide object when setting in FileMaker13, you can easily create these chameleon changing layouts.
In our Chameleon Object Entry example, we created a basic calculator to calculate area, volume and circumference values for Rectangle, Cube, Circle and Cylinder types. By using the Hide object when setting we can truly hide the fields we do not need on each row.
This allows us to condense our full set of fields:
Into a much smaller area:
With just a quick calculation on our objects:
So now, we can stack fields, labels, buttons, or any object we want, and only display it when needed on the layout. This is a great new feature that we’re already leveraging and hope you will also find useful in your development!
About the Author
Mike Beargie has been with MainSpring since 2013 and has over 10 years of application development experience. As a developer, he creates solutions for clients in a wide variety of sectors across the U.S. and abroad. Prior to working at MainSpring, Mike worked as the lead developer for a consulting company, serving high profile political, special interest and nonprofit clients in the Washington, D.C., and Columbus, Ohio, markets. Mike regularly presents solutions and best practices to the FileMaker development community around the country, and is well known as an answer man online as well. In 2014 and 2016, Mike was recognized with the FileMaker Excellence Award for community contributions. Mike is a man of many hobbies, including woodworking, home brewing, art and music.