Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / General MS InfoPath Questions / September 2004

Tip: Looking for answers? Try searching our database.

changing control appearance after its value has changed

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Liron - 05 Sep 2004 15:07 GMT
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
Greg Collins [MVP] - 06 Sep 2004 22:16 GMT
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
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.