Controls have a feature called "Conditional Formatting" available from their Properties dialog box. This is what you are looking for.
You will need some way of keeping track of the fact that a control has changed. One way to do this is to create a secondary data source that has boolean values for each control. A rule would be set on each control to set that boolean value to true. The conditional formatting would change the color if the boolean value is true.
This is a lot of work -- especially for a big form, or for a form that isn't "finalized" in its structure and design yet.
There may be other ways, but this is what came to mind first.

Signature
Greg Collins [InfoPath MVP]
Please visit: http://www.InfoPathDev.com
Hi,
I would like to know how I can change a control's appearance (color
for example) when its value is changed.
I want to be able to set it for all the controls in my form, so when
someone edit a form it would be clear what was changed in the current
session.
Can I use JScript to implement that?
Thanks,
Liron
Liron - 07 Sep 2004 08:14 GMT
Hi Greg,
I know about the "Conditional Formatting" feature and I also thougth
about this kind of solution, but I've hoped that there is some way to
implement the solution using the OnContextChange event for all the
controls at once.
Can't I access the properties of a control using JScript?
I need to find a way to implement it for many forms and they are all
very big.
Thanks,
Liron
> Controls have a feature called "Conditional Formatting" available from
> their Properties dialog box. This is what you are looking for.
[quoted text clipped - 23 lines]
> Thanks,
> Liron