<?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>Browser Forms</title><link>https://www.infopathdev.com:443/forums/40.aspx</link><description>For browser form specific questions</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: how to clear text box on click on that text box?</title><link>https://www.infopathdev.com:443/forums/thread/103021.aspx</link><pubDate>Mon, 29 Jun 2015 13:28:50 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:103021</guid><dc:creator>SearchKnowledge</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/103021.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=103021</wfw:commentRss><description>&amp;gt;&amp;gt; XPathNavigator navigator2 = this.MainDataSource.CreateNavigator();

I am trying to clear the textbox like this:

navigator2.SelectSingleNode(&amp;quot;/my:Fields/my:role/my:tbox1&amp;quot;).text = &amp;#39;&amp;#39;; //there is no &amp;quot;text&amp;quot; for the method.

How can I achieve it? I am trying to clear that textbox.</description></item><item><title>Re: how to clear text box on click on that text box?</title><link>https://www.infopathdev.com:443/forums/thread/35525.aspx</link><pubDate>Tue, 09 Dec 2008 07:05:20 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:35525</guid><dc:creator>Pundya</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/35525.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=35525</wfw:commentRss><description>&lt;p&gt;Thanks swathip&lt;/p&gt;
&lt;p&gt;Its help me a lot&lt;/p&gt;
&lt;p&gt;Pundya&lt;/p&gt;</description></item><item><title>Re: how to clear text box on click on that text box?</title><link>https://www.infopathdev.com:443/forums/thread/35517.aspx</link><pubDate>Tue, 09 Dec 2008 04:21:55 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:35517</guid><dc:creator>swathip</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/35517.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=35517</wfw:commentRss><description>&amp;nbsp;Hi, 
&lt;p&gt;Add OnContextChange event to the form and write the code to empty the field if the event is address field.&lt;/p&gt;
&lt;p&gt;Ex:&lt;/p&gt;
&lt;p&gt;[InfoPathEventHandler(EventType = InfoPathEventType.OnContextChange)]&lt;/p&gt;
&lt;p&gt;public void FormEvents_OnContextChange(DocContextChangeEvent e)&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;if (e.Context.nodeName == &amp;quot;my:field8&amp;quot;)&lt;/p&gt;
&lt;p&gt;{&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;thisXDocument.DOM.selectSingleNode(&amp;quot;/my:myFields/my:field8&amp;quot;).text = &amp;quot;&amp;quot;;&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;if (e.Type == &amp;quot;ContextNode&amp;quot;)&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;// The XML selection or context has changed.&lt;/p&gt;
&lt;p&gt;// Write your code here.&lt;/p&gt;
&lt;p&gt;return;&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Here my:field8&amp;nbsp;-&amp;gt; Address field&lt;/p&gt;
&lt;p&gt;/my:myFields/my:field8 ----&amp;gt; is the xpath of the Address field.&lt;/p&gt;</description></item><item><title>Re: how to clear text box on click on that text box?</title><link>https://www.infopathdev.com:443/forums/thread/35473.aspx</link><pubDate>Mon, 08 Dec 2008 13:40:11 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:35473</guid><dc:creator>Pundya</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/35473.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=35473</wfw:commentRss><description>&lt;p&gt;yes Madhri you are right...&lt;/p&gt;
&lt;p&gt;but i want to clear that text box when you click to enter text in that. &lt;/p&gt;
&lt;p&gt;i want this functionlity.&lt;/p&gt;</description></item><item><title>Re: how to clear text box on click on that text box?</title><link>https://www.infopathdev.com:443/forums/thread/35472.aspx</link><pubDate>Mon, 08 Dec 2008 13:34:50 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:35472</guid><dc:creator>madhuri</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/35472.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=35472</wfw:commentRss><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;1.Open infopath in design mode&lt;/p&gt;
&lt;p&gt;2.Open Properties window of the text box by right clicking on the Text box&lt;/p&gt;
&lt;p&gt;3.Select &amp;#39;Text Box Properties&amp;#39; Option&lt;/p&gt;
&lt;p&gt;4.In Properties window,select the Display Tab&lt;/p&gt;
&lt;p&gt;5.Enter the &amp;#39;Primary contact name here&amp;#39; in Placeholder text box&lt;/p&gt;
&lt;p&gt;6.Click Ok.&lt;/p&gt;
&lt;p&gt;7.Save the Form.&lt;/p&gt;</description></item><item><title>how to clear text box on click on that text box?</title><link>https://www.infopathdev.com:443/forums/thread/35469.aspx</link><pubDate>Mon, 08 Dec 2008 13:19:32 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:35469</guid><dc:creator>Pundya</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/35469.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=35469</wfw:commentRss><description>&lt;p&gt;Hi &lt;/p&gt;
&lt;p&gt;&amp;nbsp;I want to clear that text box when clicking on that. just like following url.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://www.northernnaturalgas.com/infopostings/asp/gasConnection/marketGC.asp"&gt;https://www.northernnaturalgas.com/infopostings/asp/gasConnection/marketGC.asp&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;In this url there is one section &amp;quot; &lt;span class="form"&gt;Contact Name &amp;amp; Email Address&amp;quot; below that some text boxes are present. By default they contain some text and when you click on that text disappers. i want same effect in infopath.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="form"&gt;&lt;/span&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span class="form"&gt;Please help.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="form"&gt;Pundya&lt;/span&gt;&lt;/p&gt;</description></item></channel></rss>