<?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>Newbie Questions</title><link>https://www.infopathdev.com:443/forums/39.aspx</link><description>New to InfoPath? Search to see if your question has already been answered. If it has not, then ask it here or the appropriate topic forum.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Font Color</title><link>https://www.infopathdev.com:443/forums/thread/3454.aspx</link><pubDate>Fri, 08 Dec 2006 20:09:13 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:3454</guid><dc:creator>Javier007</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/3454.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=3454</wfw:commentRss><description>This is in reply to Matt's last reply.  I'm trying to follow your explanation below and am a little lost.  Can you explain it on a more basic new user level please.  I'm a newbie when it comes to nodes and doms.&lt;br /&gt;&lt;br /&gt;Thanks,&lt;br /&gt;&lt;br /&gt;Javier</description></item><item><title>Re: Font Color</title><link>https://www.infopathdev.com:443/forums/thread/3453.aspx</link><pubDate>Thu, 07 Dec 2006 16:26:15 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:3453</guid><dc:creator>Matt Faus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/3453.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=3453</wfw:commentRss><description>Hey Bill,&lt;br /&gt;&lt;br /&gt;Here's an idea:&lt;br /&gt;&lt;br /&gt;1. Create a boolean node in a secondary dom called "fieldXedited" - defaults to false&lt;br /&gt;2. Set conditional formatting on fieldX in the Main DOM to be blue/red depending on value of "fieldXedited" on 2DS&lt;br /&gt;3. Add an OnAfterChange event on fieldX that sets "fieldXedited" to true.</description></item><item><title>Re: Font Color</title><link>https://www.infopathdev.com:443/forums/thread/3452.aspx</link><pubDate>Tue, 14 Nov 2006 16:07:58 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:3452</guid><dc:creator>Bill </dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/3452.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=3452</wfw:commentRss><description>Matt,&lt;br /&gt;&lt;br /&gt;Thanks for the reply.  My first solution was two different views, one in red and one in blue.  However, my manager wants the text to remain blue unless it is edited.  So this also rules having different style sheets as well.&lt;br /&gt;&lt;br /&gt;I thought I had the write code statement but I am now wondering if it does not understand or know what element to apply the formating to.  I will review the attached information but if you get a XSN file from Michael, please forward it on to me.&lt;br /&gt;&lt;br /&gt;Thanks!&lt;br /&gt;&lt;br /&gt;Bill&lt;br /&gt;</description></item><item><title>Re: Font Color</title><link>https://www.infopathdev.com:443/forums/thread/3451.aspx</link><pubDate>Tue, 14 Nov 2006 15:52:20 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:3451</guid><dc:creator>Matt Faus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/3451.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=3451</wfw:commentRss><description>I believe this is a duplicate of this post:&lt;a target="_blank" href=http://infopathdev.com/forums/topic.asp?TOPIC_ID=3692&gt;http://infopathdev.com/forums/topic.asp?TOPIC_ID=3692&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Michael, I have never seen this method to change the font color of a textbox control in an InfoPath form - could you e-mail me an XSN where this technique is working?&lt;br /&gt;&lt;br /&gt;Bill, since you have so many fields you might want to use a whole other view to show all the fields as red if you don't want to make all the secondary DOM nodes.  See the other post for more information on this.</description></item><item><title>Re: Font Color</title><link>https://www.infopathdev.com:443/forums/thread/3450.aspx</link><pubDate>Fri, 10 Nov 2006 15:59:59 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:3450</guid><dc:creator>Bill </dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/3450.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=3450</wfw:commentRss><description>Can this be completed generically from the On Context Change event?  If so, do you have the actual syntax?  &lt;br /&gt;&lt;br /&gt;For example:  fieldname = thisXDocument.DOM.selectSingleNode("/dfs:myFields/my:ApplicationType")&lt;br /&gt;&lt;br /&gt;What would the syntax be for changing the color of this field from blue to red?&lt;br /&gt;&lt;br /&gt;Thanks!</description></item><item><title>Re: Font Color</title><link>https://www.infopathdev.com:443/forums/thread/3449.aspx</link><pubDate>Tue, 07 Nov 2006 19:53:24 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:3449</guid><dc:creator>Michael71</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/3449.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=3449</wfw:commentRss><description>Yes...you would have to write code in the event handler. All you have to do is right click on any text box and select properties and select data Validation then select an event....this will most likely be the before event an write some code...maybe like this...&lt;br /&gt;Use the javascript triggered by the onFocus and onBlur attributes within the textbox html.  The javascript you need to use to actually change the color is something like this: Just do a little research and google it...hope this helps.&lt;br /&gt;&lt;br /&gt;//To set it&lt;br /&gt;textbox.style.backgroundColor = "#FF0000";&lt;br /&gt;&lt;br /&gt;//To "clear" it.  If the BGcolor is set by some CSS style,&lt;br /&gt;//clearing it will make it revert back to the CSS defined appearance.&lt;br /&gt;textbox.style.backgroundColor = "";&lt;br /&gt;&lt;br /&gt;Take a look at the CSS reference at the MSDN site.  This is one of the most complete CSS/DHTML references I have found:&lt;br /&lt;a target="_blank" href=http://msdn.microsoft.com/library/default.asp?url=/workshop/author/css/reference/css_ref_entry.asp&gt;http://msdn.microsoft.com/library/default.asp?url=/workshop/author/css/reference/css_ref_entry.asp&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;</description></item><item><title>Re: Font Color</title><link>https://www.infopathdev.com:443/forums/thread/3448.aspx</link><pubDate>Tue, 07 Nov 2006 19:00:14 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:3448</guid><dc:creator>Bill </dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/3448.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=3448</wfw:commentRss><description>I want to set font color on all text boxes on the main view.  I have approixmatley 500 text boxes (yes..big form).  Is there one command to execute this?&lt;br /&gt;&lt;br /&gt;Bill</description></item><item><title>Re: Font Color</title><link>https://www.infopathdev.com:443/forums/thread/3447.aspx</link><pubDate>Tue, 07 Nov 2006 18:52:58 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:3447</guid><dc:creator>Michael71</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/3447.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=3447</wfw:commentRss><description>This will be possible through code obvisously, but what fields are you trying to change. Give us a better example.</description></item><item><title>Font Color</title><link>https://www.infopathdev.com:443/forums/thread/1653.aspx</link><pubDate>Tue, 07 Nov 2006 18:33:06 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:1653</guid><dc:creator>Bill </dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/1653.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=1653</wfw:commentRss><description>Hello,&lt;br /&gt;&lt;br /&gt;I am trying to identify when values have changed on a form by changing the font color when the data is updated or changed by the end user.&lt;br /&gt;&lt;br /&gt;For Example:&lt;br /&gt;&lt;br /&gt;I set x = 1.  Two days later I change x = &lt;font color="red"&gt;2&lt;/font id="red"&gt;.  Now when someone reviews the form, they can see at a quick glance what information has changed.&lt;br /&gt;&lt;br /&gt;Is this possible?  If yes, how?&lt;br /&gt;&lt;br /&gt;Thank you in advance for your help!!!&lt;br /&gt;&lt;br /&gt;Bill</description></item></channel></rss>