Results 1 to 7 of 7
-
10-31-2012, 01:48 PM #1Gold Member
- Join Date
- Sep 2012
- Posts
- 29
- Location
- Northern IL
- FileMaker Version
- FM 11, FM 11 Developer, FM 11 Server, FM 12, FM 12 Developer, FM 12 Server
- OS
- Windows & Mac
- Skill Level
- Intermediate
Need Help With Conditional Formatting a field based on Date Range
Hey All!
I'm working on setting up some conditional formatting on a field that displays due dates. I've figured out how to use conditional formatting to change the text color to orange by this: Self ≥ Get(CurrentDate) - 6. So the date in the field turns orange if the due date is between today and 6 days before the due date (At least I think that's how it's working, Hope!) I also want to:
Have the due date text in the field turn yellow if the due date in the field being formatted is between 7-14 days before the due date
and
Have the text in the due date field turn green if the due date in the field is 15-30 days before the due date.
I'm sure it's an easy one but I'm still green behind the ears
.
Thanks!
-
10-31-2012, 03:41 PM #2Good guy
- Join Date
- Apr 2005
- Posts
- 689
- Location
- Middleport, NY USA
- FileMaker Version
- FM 9 Developer, FM 10 Developer, FM 11 Server, FM 12 Developer, FM 12 Server, Older Versions 2-8
- OS
- Windows & Mac
- Skill Level
- Intermediate
Re: Need Help With Conditional Formatting a field based on Date Range
Use the same calculations, but put the 30 days condition first:
Self ≥ Get(CurrentDate) - 30 //green
Self ≥ Get(CurrentDate) - 14 //yellow
Self ≥ Get(CurrentDate) - 6 //orange
The conditional result will always reflect the last true condition.Give the gift of life. Register as an organ donor today!
http://www.organdonor.gov/become.asp
-
11-01-2012, 11:30 AM #3Gold Member
- Join Date
- Sep 2012
- Posts
- 29
- Location
- Northern IL
- FileMaker Version
- FM 11, FM 11 Developer, FM 11 Server, FM 12, FM 12 Developer, FM 12 Server
- OS
- Windows & Mac
- Skill Level
- Intermediate
Re: Need Help With Conditional Formatting a field based on Date Range
I'm not sure that your suggestion is working. Not sure where I'm going wrong here...Are the calculations correct for what I'm trying to do?
-
11-01-2012, 02:29 PM #4Good guy
- Join Date
- Apr 2005
- Posts
- 689
- Location
- Middleport, NY USA
- FileMaker Version
- FM 9 Developer, FM 10 Developer, FM 11 Server, FM 12 Developer, FM 12 Server, Older Versions 2-8
- OS
- Windows & Mac
- Skill Level
- Intermediate
Re: Need Help With Conditional Formatting a field based on Date Range
It works fine for me. If I enter 10/7/12 in the field, the text is green. If i enter 10/17/12, the text is yellow, and if I enter 10/27/12, the text is orange.
The three calculations, as shown, should be in the Conditional Formatting dialog for the due date field. Use the Add button to insert the second and third conditions. All 3 check boxes next to the calculations should be checked.Give the gift of life. Register as an organ donor today!
http://www.organdonor.gov/become.asp
-
11-01-2012, 03:08 PM #5Gold Member
- Join Date
- Jul 2007
- Posts
- 50
- Location
- Quincy, IL USA
- FileMaker Version
- FM 11, FM 11 Developer, FM 11 Server, FM 12, FM 12 Developer
- OS
- Windows & Mac
- Skill Level
- Intermediate
Re: Need Help With Conditional Formatting a field based on Date Range
I assume when you say "Due Date" you mean the date in which something is due. So the "Due Date" would be in the future correct? If this is the case then you just need to invert the calculations, I took the liberty of adding the calculations for anything that is greater than 30 days green and Due that day or before Red:
Self ≥ Get(CurrentDate) + 30 //Green Greater than 30 days till due
Self ≤ Get(CurrentDate) + 30 //Green 30 to 15 days till due
Self ≤ Get(CurrentDate) + 14 //Yellow 14 to 7 days till due
Self ≤ Get(CurrentDate) + 6 //Orange 6 to 1 days till due
Self ≤ Get(CurrentDate) //Red due date is today or before meaning it is late
You can modify these as you see fit I just think that it should be red if today is the due date or if it is late.
-
11-01-2012, 04:15 PM #6Good guy
- Join Date
- Apr 2005
- Posts
- 689
- Location
- Middleport, NY USA
- FileMaker Version
- FM 9 Developer, FM 10 Developer, FM 11 Server, FM 12 Developer, FM 12 Server, Older Versions 2-8
- OS
- Windows & Mac
- Skill Level
- Intermediate
Re: Need Help With Conditional Formatting a field based on Date Range
I think you're right, Nick. I got crossed up deciding which "due date" was really "current date".
Give the gift of life. Register as an organ donor today!
http://www.organdonor.gov/become.asp
-
11-01-2012, 09:42 PM #7Gold Member
- Join Date
- Sep 2012
- Posts
- 29
- Location
- Northern IL
- FileMaker Version
- FM 11, FM 11 Developer, FM 11 Server, FM 12, FM 12 Developer, FM 12 Server
- OS
- Windows & Mac
- Skill Level
- Intermediate
Re: Need Help With Conditional Formatting a field based on Date Range
Thank you both, Doug and Nick, very much for your help!
Nick, I'm going to get on implementing your suggestion and see where it takes me but it looks like exactly what I'm asking about!
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
Conditional Formatting Based on Summary Field
By joannadarling in forum FileMaker Pro 10Replies: 3Last Post: 05-02-2013, 03:26 PM -
conditional formatting based on layout name
By jcpython in forum FileMaker Pro 11Replies: 2Last Post: 03-17-2012, 09:26 AM -
conditional formatting based on date
By robfoster in forum FileMaker Pro 11Replies: 3Last Post: 11-03-2011, 02:19 PM -
Conditional Formatting Based on Time
By 3PointJ in forum FileMaker Pro 10Replies: 3Last Post: 04-16-2010, 05:47 AM -
Conditional Formatting based on view mode?
By preet in forum FileMaker Pro 9Replies: 7Last Post: 06-26-2008, 11:16 PM





Reply With Quote



Bookmarks