<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Code</title><link>https://www.infopathdev.com:443/forums/45.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Can you shade a field using code?</title><link>https://www.infopathdev.com:443/forums/thread/67674.aspx</link><pubDate>Thu, 23 Jun 2011 05:01:48 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:67674</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/67674.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=67674</wfw:commentRss><description>&lt;p&gt;Hi Joanne, &lt;/p&gt;
&lt;p&gt;if you are trying to shade based on data that changes, just add a secondary data source to your form and use that in your CF.&lt;/p&gt;
&lt;p&gt;if you are trying to conditionally change the color of the shading, that can also be done by adding all possible variations into your form and show-hiding based on the data.&lt;/p&gt;
&lt;p&gt;might not be as hard as you think ...&lt;/p&gt;
&lt;p&gt;:)&lt;/p&gt;</description></item><item><title>Re: Can you shade a field using code?</title><link>https://www.infopathdev.com:443/forums/thread/67645.aspx</link><pubDate>Wed, 22 Jun 2011 12:26:34 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:67645</guid><dc:creator>JoanneWellings</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/67645.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=67645</wfw:commentRss><description>&lt;p&gt;OK - I&amp;#39;ve read a bit more on the subject, and it seems that it&amp;#39;s not possible in InfoPath :( Looks like it&amp;#39;ll be the hard way...&lt;/p&gt;</description></item><item><title>Can you shade a field using code?</title><link>https://www.infopathdev.com:443/forums/thread/67643.aspx</link><pubDate>Wed, 22 Jun 2011 10:05:39 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:67643</guid><dc:creator>JoanneWellings</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/67643.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=67643</wfw:commentRss><description>&lt;p&gt;Hi all - &lt;/p&gt;
&lt;p&gt;I&amp;#39;m trying to code some conditional formatting. To do it without code means updating 43 fields with more CF rules, which could then change in the future. I was hoping to use some select case code to do the job.&lt;/p&gt;
&lt;p&gt;I can&amp;#39;t find the code to set a field&amp;#39;s shading. Is it possible?&lt;/p&gt;
&lt;p&gt;TIA&lt;/p&gt;</description></item></channel></rss>