rivet Posted April 6, 2011 Posted April 6, 2011 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
comment Posted April 6, 2011 Posted April 6, 2011 You need the screen to refresh in order for the change to show. Merely entering a field is not going to do it.
LaRetta Posted April 6, 2011 Posted April 6, 2011 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.
rivet Posted April 6, 2011 Author Posted April 6, 2011 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
comment Posted April 6, 2011 Posted April 6, 2011 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.
Raybaudi Posted April 6, 2011 Posted April 6, 2011 It is the refresh on exiting without edits. that is causing the grief. Something like this ? highlightMod.zip
comment Posted April 6, 2011 Posted April 6, 2011 It's a very neat idea, Daniele - but still, if you exit the field by pressing Enter, the label persists.
Raybaudi Posted April 6, 2011 Posted April 6, 2011 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.
comment Posted April 6, 2011 Posted April 6, 2011 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
Raybaudi Posted April 6, 2011 Posted April 6, 2011 However, that gives me an idea I had another idea... and could work even with 9 ( no trigger ) ! highlight4.zip
David Jondreau Posted April 6, 2011 Posted April 6, 2011 However, that gives me an idea: What does the Left ( Get ( CurrentTime ) ; 0 ) do?
comment Posted April 6, 2011 Posted April 6, 2011 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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now