Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Toggle Color when any field is active

Featured Replies

I am trying to toggle a color of a label based on if a field is active or not. If I made and edit I am fine but if just tabbing through field without any edits no luck, any suggestions

You need the screen to refresh in order for the change to show. Merely entering a field is not going to do it.

I am trying to toggle a color of a label

Why not consider coloring the field when active instead? Change (all) your enterable fields to background color of the highlight (such as yellow). Then add conditional format to all the enterable fields with: Value is - Empty and select fill of white (or whatever you want for your non-active color).

I think it might look better than highlighting the label. :)

Oh right - I keep forgetting that we don't need ANY formula but rather a simple formula of 1.

  • Author

You need the screen to refresh in order for the change to show. Merely entering a field is not going to do it.

It is the refresh on exiting without edits. that is causing the grief. I was thinking a field could be timestamped each time. But no luck. I have attached the file.

LaRetta as far a purpose. I was need a clean interface with no labels when browsing the record, then when you enter, the labels appear.

highlight.fp7.zip

Well, the thing is that both OnObjectExit and OnRecordCommit run BEFORE the actual event - so when the screen is refreshed, the cursor is still in the field.

I don't see a good solution for this. Perhaps you could commit the record when exiting a field - but that would [a] flash and take away the opportunity to revert modifications.

It is the refresh on exiting without edits. that is causing the grief.

Something like this ?

highlightMod.zip

It's a very neat idea, Daniele - but still, if you exit the field by pressing Enter, the label persists.

It's a very neat idea, Daniele - but still, if you exit the field by pressing Enter, the label persists.

Yes, I see.

But the enter key could be trapped by the field's behavior.

But the enter key could be trapped by the field's behavior.

True, but that would change the field's behavior - so users would no longer be able to terminate data entry by pressing Enter.

However, that gives me an idea:

highlight3.zip

However, that gives me an idea

I had another idea... and could work even with 9 ( no trigger ) !

highlight4.zip

However, that gives me an idea:

What does the Left ( Get ( CurrentTime ) ; 0 ) do?

I had another idea... and could work even with 9 ( no trigger ) !

Nice. Lot of work with formatting and aligning - but very cheap in Filemaker resources.

What does the Left ( Get ( CurrentTime ) ; 0 ) do?

Nothing. I forgot to remove it from OP's file.

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.