<?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: Hiding a picture programatically</title><link>https://www.infopathdev.com:443/forums/thread/3689.aspx</link><pubDate>Fri, 22 Dec 2006 19:24:45 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:3689</guid><dc:creator>kelsawy2000</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/3689.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=3689</wfw:commentRss><description>Thank you Shiva&lt;br /&gt;&lt;br /&gt;This worked out very well.</description></item><item><title>Re: Hiding a picture programatically</title><link>https://www.infopathdev.com:443/forums/thread/3688.aspx</link><pubDate>Wed, 20 Dec 2006 07:23:43 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:3688</guid><dc:creator>Shiva</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/3688.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=3688</wfw:commentRss><description>Hi Kelsawy,&lt;br /&gt;&lt;br /&gt;For this you can add one field (True/False data type) to your data source and set by default value is false. You can write following code in your onClick event on button.&lt;br /&gt;&lt;br /&gt;If(XDocument.DOM.selectSingleNode("Xpath of your field").text == “false”)&lt;br /&gt;{&lt;br /&gt;XDocument.DOM.selectSingleNode("Xpath of your field").text == “true”&lt;br /&gt;}&lt;br /&gt;else&lt;br /&gt;{&lt;br /&gt;XDocument.DOM.selectSingleNode("Xpath of your field").text == “false”&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;You need to add conditional formatting on picture and condition is whichever you added new field is equal to ‘true#%92 hide this control.</description></item><item><title>Hiding a picture programatically</title><link>https://www.infopathdev.com:443/forums/thread/1744.aspx</link><pubDate>Tue, 19 Dec 2006 08:52:39 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:1744</guid><dc:creator>kelsawy2000</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/1744.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=1744</wfw:commentRss><description>I am using Infopath 2003 with SP1.  I added a button and picture in my form.  When I click the button I want the picture to be hidden (disappear) and when click again to appear.  This is to simulate an approval stamp.&lt;br /&gt;&lt;br /&gt;Is this doable in infopath by VB Script?  Your help is greatly appreciated.&lt;br /&gt;</description></item></channel></rss>