<?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: OnContextChange Code</title><link>https://www.infopathdev.com:443/forums/thread/25362.aspx</link><pubDate>Thu, 03 Jan 2008 14:53:10 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:25362</guid><dc:creator>Matt Faus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/25362.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=25362</wfw:commentRss><description>&lt;p&gt;Hi Tarmon and welcome to the forums!&lt;/p&gt;
&lt;p&gt;Here&amp;#39;s how I would do it:&lt;/p&gt;
&lt;p&gt;1. Create a repeating structure (probably in a 2DS) with a Base64 node for each image, and a text node for the URL of the location that you want to go to when it is clicked.&lt;/p&gt;
&lt;p&gt;2. Create another node called &amp;quot;CurrentContext&amp;quot; in a 2DS.&lt;/p&gt;
&lt;p&gt;3. Mentally number all of your textboxes from 1 to n.&lt;/p&gt;
&lt;p&gt;4. In OnContextChange() update the value of CurrentContext to be the designated integer value that you have establised.&lt;/p&gt;
&lt;p&gt;5.&amp;nbsp;Place the repeating structure that has the pictures in it on the view as a repeating section.&amp;nbsp; Then, add conditional formatting that only displays the row where position() = CurrentContext.&amp;nbsp; Also, be sure to enable your image as a hyperlink pointing to the node with the URL in it.&lt;/p&gt;
&lt;p&gt;Hope this helps, good luck!&lt;/p&gt;</description></item><item><title>OnContextChange Code</title><link>https://www.infopathdev.com:443/forums/thread/25360.aspx</link><pubDate>Thu, 03 Jan 2008 06:03:56 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:25360</guid><dc:creator>tarmon</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/25360.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=25360</wfw:commentRss><description>&lt;p&gt;Hey Everyone,&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I am wanting to write something that will allow me to change an image within my form depending on what text box control they have selected.&amp;nbsp; I want to have my picture control be a link also. I am not really sure how to do this at all and if some one could at least get me started it would be much appreciated. &lt;/p&gt;&lt;p&gt;Thank you,&lt;/p&gt;&lt;p&gt;Tarmon&lt;br /&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>