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 / February 2007

Tip: Looking for answers? Try searching our database.

alternating colors in repeating controls

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
dnaumowicz@gmail.com - 19 Feb 2007 19:24 GMT
Hi,

I've set up a group of controls that are an opitional repeating
group.  Is there any way I can change the color in every other
instance (this is not a grid)?

Thanks!

David
J Galloway - 19 Feb 2007 20:35 GMT
Delightfully simple:

1) Go to properties for the repeating section (right click it's bottom tab->
repeating section properties)
2) Display tab -> Conditional formatting
3) Add a new conditional formatting rule
4) Select if "the expression" is true
5) add this as your expression:  
    position() mod 2 = 0
6) Choose the background color near the bottom of the dialog and hit OK

This will format the even numbered instances with the color you want... if
you want to do the odd ones, this is the expression:
position() mod 2 = 1

Enjoy!

> Hi,
>
[quoted text clipped - 5 lines]
>
> David
 
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.