Jump to content

Toggle Color when any field is active


 Share

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

Recommended Posts

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

This topic is 4316 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
 Share

×
×
  • Create New...

Important Information

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