<?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: Create link</title><link>https://www.infopathdev.com:443/forums/thread/57514.aspx</link><pubDate>Sun, 01 Aug 2010 20:31:13 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:57514</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/57514.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=57514</wfw:commentRss><description>&lt;p&gt;You can do this without code. Just add a rule that sets a fields value based on concatenation of&amp;nbsp;your text fields into the form of your URL (link address, for example &lt;a href="http://%3cserver%3e/%3Cwebsite%3E/%3Cpage.html%3E/"&gt;http://&amp;lt;server&amp;gt;/&amp;lt;website&amp;gt;/&amp;lt;page.html&amp;gt;/&lt;/a&gt; ). Then add that field to your view as a link and you can click on it to open a new window. If it&amp;#39;s HTML it will open with no problem, if it&amp;#39;s a DOC or XLS file, you&amp;#39;ll want to use the file:// protocol instead of http:// &lt;/p&gt;</description></item><item><title>Re: Create link</title><link>https://www.infopathdev.com:443/forums/thread/57513.aspx</link><pubDate>Sun, 01 Aug 2010 20:03:21 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:57513</guid><dc:creator>Potemkine</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/57513.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=57513</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi, you can do an &amp;quot;on after change&amp;quot; event on you text box, build your URL in xhtml(&amp;lt;a href:&amp;quot;http:myURL&amp;quot;&amp;gt; Click here&amp;lt;/a&amp;gt; and modify the innerXML on a Rich text field (if you use C# 2007), and make some conditionnal formatting on both. For your text field, you hide it when it&amp;#39;s not blank, and your RT field, your hide it if it&amp;#39;s blank.&lt;span id="result_box" class="short_text"&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span id="result_box" class="short_text"&gt;&lt;span&gt;An easiest way is to add a button and &lt;/span&gt;&lt;/span&gt;&lt;span id="result_box" class="short_text"&gt;&lt;span&gt;launch an IE process of your URL: Process.Start(&amp;quot;IExplore.exe&amp;quot;, MyUrl);&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Create link</title><link>https://www.infopathdev.com:443/forums/thread/57407.aspx</link><pubDate>Wed, 28 Jul 2010 11:16:55 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:57407</guid><dc:creator>alexia_net</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/57407.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=57407</wfw:commentRss><description>&lt;p&gt;Hi. If i have a text on the form (the text may be in a text box for example) how can i transform it into a link which will open a new window using code? Thank you!&lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>