Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 4980 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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

Posted

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.

Posted

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

Posted

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.

Posted

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.

Posted

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

Posted

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.

This topic is 4980 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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