Is there anyway to change the text color of all the fields and editor changes? Example: This is for our timesheets. Once a user saves his/her’s timesheet and their supervisor makes changes to it we want only the fields the supervisor has changed to appear in green. Is this possible???
Thanks in advance
Subject: Change Text color based on editor on web
If these are true fields (not cells in a rich text field), your best bet is to have two fields for each field value, and when the supervisor goes in to make changes, it displays the second field for any changed value. The second fields can be green. I have done this before, so I know it is possible, although it is a bit of a nuisance to set up.
Subject: Change Text color based on editor on web
In addition to Ben’s suggestion, if the data is seen in a browser then apply a style sheet to it and compute the color/class change as needed.
Collin
KC8TKA
Subject: RE: Change Text color based on editor on web
Is there no way of doing this without multiple fields. Our timesheets could have 3-4 levels of approval.
Subject: RE: Change Text color based on editor on web
How are you determining that a specific field has changed? As Collin said, use a stylesheet. As long as you already know how to determine that a field has changed, you can do this with a single field. Just put some passthru HTML around it, using a div or p tag with a class attribute. Make the class a computed value, based on whether the field is new or changed.
For example:
<p class=>[my notes field]
where Computed Text evaluates to either newField or changedField based on your logic for determining field changes.
Your two classes could look something like this:
.newField {font-family:geneva, arial, helvetica, sans-serif; font-size:9 pt; color:black; }
.changedField {font-family:geneva, arial, helvetica, sans-serif; font-size:9 pt; color:red; }
This obviously assumes that your app is web-based. If not, you may be stuck with Ben’s solution. If you only need to see the different colors in a view, that’s easy - just make a color column before each field column and set the value conditionally.