My.ADVISOR.com Sign-In
Username
Password
Sign Up 
Go to Article
Advanced Search 

ADVISOR TIPS

Applied Conditional Formatting in FileMaker Pro

Learn an innovative technique that wouldn't have been nearly as elegant before FileMaker Pro 9.

By Stuart Gripman, Crooked Arm Consulting founder and president, and Advisor Basics of FileMaker Pro technical editor

UNLOCKED -- This article is provided to subscribers of FILEMAKER PRO BASICS ADVISOR or DATABASED ADVISOR or FILEMAKER PRO BASICS ADVISOR. To subscribe or renew, go to Advisor Store.

This tip came to me from Lynn Oburg, one of Crooked Arm's developers. We were able to help our customer using this innovative technique that wouldn't have been nearly as elegant before FileMaker Pro 9.

Figure 1: Conditional formatting -- Until there's unconditional formatting, you'll have to use this.


Figure 2: Choose wisely -- Use your conditional common sense to pick a pleasing palette.


Figure 3: A clue! -- The required fields are obvious now. If you see yellow, you aren't finished yet.

Our customer takes dozens of telephone orders per day and must gather a lot of information for each order. To make matters worse, the required information changes based on a number of factors. Traditionally, we would have used validations on each field to display an error message when a user left a required field empty. Unfortunately, field validation isn't without its own problems, the primary offender being FileMaker Pro's default error message which can be confusing. We've also built "shadow" fields that let users fill out the form unhindered by validation. When the form is complete, the user clicks on a Save button and we use a script to validate the entire form at once. This approach provides a better user experience, but adds hours of development time. Lynn's approach is to use conditional formatting, a feature new to FileMaker Pro 9.


Conditional formatting simply changes the way fields and some other layout objects appear based on criteria you specify. Let's start with the required fields. Open any database in FileMaker Pro 9 and enter Layout mode. Select any field and choose "Conditional…" from the Format menu (figure 1). In the Conditional Formatting dialog that appears (figure 2), click on the Add button and set the condition pop-up menus to "Value is" and "empty."

Under format, select the "Fill Color" box. Choose a fill color that is distinct enough to call attention to itself among the other colors on your layout. You should also be careful to select a color that contrasts well with the text color in that field. White text on a yellow background, for example, will cause some nasty headaches. Bright red on a bright blue background, when stared at, will start to look like one of those anime cartoons that cause seizures. Refer to the example provided in the Conditional Formatting dialog to ensure you won't be the source of suffering … for this, anyway.

Click on OK and enter Browse mode to see your handiwork. When the field is empty, it should display the colored background. After you enter a value, however, the background reverts to the default. Now, when creating a new record, users can easily perceive which fields are required (figure 3).

Applied Conditional Formatting

No reader comments ... yet.

    What do YOU think about this topic? Share your advice and thoughts using this form.

    Your Name

    REQUIRED : PUBLIC

    Your E-Mail

    REQUIRED : PRIVATE

    Job, Company

    OPTIONAL : PUBLIC

    City, State, Country

    OPTIONAL : PUBLIC

    Your Web Site

    OPTIONAL : PUBLIC

    Your Comment

    Please help everyone by keeping your comments on-topic, using clean language, and not defaming or making personal attacks.


    Your e-mail address is required, but it will not be displayed to the public or given to anyone. See our Privacy Policy. Comments become visible after they pass our spam filter, and spammers and abusers are permanently blocked. Please report spam or abuse.

    Stuart GripmanStuart Gripman is the founder and president of Crooked Arm Consulting, a FileMaker Solutions Alliance Partner firm in Berkeley, California. He previously held Senior Support positions at Claris Corp. and FileMaker Inc. Since 2000, Crooked Arm Consulting has offered custom FileMaker solutions benefiting a wide variety of people and causes from fine art patrons to the International Space Station. http://www.crookedarm.com stuart@crookedarm.com

    Printer-friendly
    page layout

    Keyword Tags: FileMaker, FileMaker FileMaker Pro, FileMaker Users

    ADVISORAMA
    Midlife crisis is that moment when you realize your children and your clothes are about the same age.

    ARTICLE INFO

    FileMaker Pro Basics Advisor

    Web Edition: 2008 Week 08, Doc #19381

    Print Edition: Issue #13, Page 14

    SUBSCRIBER ONLY ARTICLE LOCKED

    Subscribe to FileMaker Advisor Magazine

    Read the advanced guide to creating custom business database solutions with FileMaker software. Subscribe now to gain access to all the archives and downloads.

    FileMaker.Advisor.com

    Subscribe to Advisor Basics of FileMaker Pro

    Learn the fundamentals of using FileMaker Pro software. Every issue gives you step-by-step instructions on creating the databases you need. Subscribe now!

    FileMaker.AdvisorBasics.com

    Free E-Newsletters

    Keep up! Hot News, How-To, Tips & Tricks, Expert Advice, and more. Click to request your's free.

    AdvisorUpdate.info

    Need Know-How Now?

    What direction are you going with your business? Advisor Guides are packed with the answers you need to work smarter. Can you afford to fall behind?

    AdvisorStore.com

    Showcase Your Smarts

    Submit your tips, techniques and advice and let Advisor promote your business and build your career. Show the world what you know!

    AdvisorTips.com

    Use of this or any other site, content, product or service of Advisor Media constitutes acceptance of Terms of Use.
    Portions copyright ©1983-2008 Advisor Media, Inc. All Rights Reserved.
    Reuse or reproduction of any portion or quantity of Advisor Media's copyrighted content, in any form, for any purpose, requires written permission.
    ADVISOR®, the ADVISOR logo, and other names and logos that incorporate ADVISOR are registered trademarks, trademarks or service marks of Advisor Media, Inc. in the United States and/or other countries.
    Other trademarks are used for identification, editorial or descriptive purposes and are the property of their owners.
    grips017-01 posted 02/18/2008 modified 05/12/2008 03:43:07 AM ztfmfu/ztfmfu
    domino-144.advisor.com my.advisor.com 05/16/2008 12:27:08 PM