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 / August 2005

Tip: Looking for answers? Try searching our database.

textbox shading

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Peter Ghali - 31 Aug 2005 16:18 GMT
Hi all,

Does anyone know how to apply a colored shading to the active element (ie:
The textbox that currently has focus) in an InfoPath form? As the user tabs
around my form, I want the background of the active textbox to be shaded
yellow.

Since my form is huge and changes frequently, I'd like to find a way to do
this without using conditional formatting on each textbox--perhaps by
applying a css style to the view (.xsl file).

Thanks in advance.

--Peter Ghali
Greg Collins [InfoPath MVP] - 01 Sep 2005 00:17 GMT
Sorry to say that you will not be able to do this without conditional formatting. To do this will require some fancy coding using the OnContextChange event and a lot of conditional formatting. All other DOM events you can normally use in HTML are locked out in InfoPath for security reasons.

Signature

Greg Collins [InfoPath MVP]
Please visit: http://www.InfoPathDev.com

Hi all,

Does anyone know how to apply a colored shading to the active element (ie:
The textbox that currently has focus) in an InfoPath form? As the user tabs
around my form, I want the background of the active textbox to be shaded
yellow.

Since my form is huge and changes frequently, I'd like to find a way to do
this without using conditional formatting on each textbox--perhaps by
applying a css style to the view (.xsl file).

Thanks in advance.

--Peter Ghali

Rate this thread:






 
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.