Skip to main content

Filemaker 13 - Hidden Labels

Remember the days when a developer wanted to make one of those fancy fields with placeholder text? Conditional formatting, 500px text tricks, etc.  Well, thanks to FileMaker 13's "Hide Object" calculation field, it is now a breeze! This method is especially useful for iPhone layouts as screen space is at a premium.

The topic was discussed some time ago in this thread on FMForums.com for earlier versions of FileMaker.

Here is an example if the solution:
Demo Field Labels
Demo file attached.  Read on...
These labels are much like those seen on Web forms.  The field label is a hint for the user to enter the data in the proper field.  First name, middle, last etc.

Here is a partially filled in form:
Form with first, last and nickname added.
And here is with a field in focus:
Field in focus - label gone
With FileMaker's new "Hide Object When" calculation, it is now easy to just hide the label when the field has data.
Example: Hide object when… not IsEmpty ( Field Label Demo::nameMiddle )

The same can apply to other elements on the layout.  For example when a field contains data, the letter indicators as to the data type could be displayed as shown here at the right of the field box.

The same principle applies to other elements such as navigation.  As you can see in the example above the Left and Right arrow indicators for navigating the records disappear at first or last record depending on the found set.  The sample file can be downloaded below.

Demo File FileMaker 13

EDIT: FM 14 makes this all obsolete with the new "Placeholder Text" calculation field!  So good.  There are many ways to take advantage of Filemaker's calculation engine using the "Hide when".  For example, one can set a local or global variable to display custom text or calculations.

Comments

Popular posts from this blog

Acid3 Test

I did an Acid3 test with a few browsers and these are the results I got.  For those unfamiliar, as I understand it, Acid3 is a test to see how compliant a browser is with current standards with the W3C . Browser # 1: Chrome by Google.  Running under Windows Vista Home on my Mac in VMWare. 79/100 Not bad for a new browser.  I'll be curious to see what the Mac version will do when it comes out. Browser #2: Firefox v.3.0.1 Mac OS X 10.5.4 71/100 Not as good as Chrome, but I have a PILE of extensions on Firefox. Browser #3: Safari 3.1.2 Mac OS X 10.5.4 75/100 Better than Firefox but still lower than Chrome. My take is overall they seem to perform about the same but I'll stick with Safari for now.  I use Firefox for much of my web browsing, but Safari is fast becoming a close second. Someday, maybe I'll test Opera too. Cheers!

Tips: Delete duplicate entries in "Open With..." dialog in Finder

Duplicates!!! When you control+click (or right click if you have enabled that option) on Mountain Lion, and there seems to be several duplicate applications listed and/or apps you no longer use, here is a Terminal shell script that will fix that.  Just copy and paste the code below in a Terminal window. /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -kill -r -domain local -domain user (Terminal can be found using Launchpad or Spotlight) After pasting, hit the Return key and allow time to run, then type "killAll Finder" without the quotes, and Return.  This will rebuild the "Open With..." menu.   If you do not see an immediate effect on the lists, restart your Mac.   Should be no need to restart. (Thanks, JK) Duplicates and old apps gone! If you wish, you can make a Service that will do it using Automator as well: Open Automator (Launch Pad or Applications folder) Create...

Spotlight followup - Even More!

Alex has commented to the previous post that Spotlight is integrated with Calculator. Here is a screen shot showing how to use it: In this instance 58 x 8 = 464 (using the asterisk as the multiplier symbol) Great tip, Alex!