<?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: YES/NO Button</title><link>https://www.infopathdev.com:443/forums/thread/4412.aspx</link><pubDate>Wed, 11 Apr 2007 07:21:00 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:4412</guid><dc:creator>nukkumatti</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/4412.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=4412</wfw:commentRss><description>Hi Michael,&lt;br /&gt;&lt;br /&gt;just an idea. I would may be name the button "Task Done" or something. Then double click the button and click the "Edit Code"&lt;br /&gt;button. Now use custom code to check if all your required fields are filled out correctly (e.g. field1 is a text box for which you want to test if it is filled or not)&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;if(XDocument.DOM.selectSingleNode(my:myFields/my:field1).text != "")&lt;br /&gt;{&lt;br /&gt;    XDocument.View.SwitchView("viewName");&lt;br /&gt;}&lt;br /&gt;else&lt;br /&gt;{&lt;br /&gt;    XDocument.UI.Alert("Your alert message");&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Hope this helps</description></item><item><title>Re: YES/NO Button</title><link>https://www.infopathdev.com:443/forums/thread/4411.aspx</link><pubDate>Wed, 11 Apr 2007 06:53:50 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:4411</guid><dc:creator>madhuri</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/4411.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=4411</wfw:commentRss><description>Hi&lt;br /&gt;&lt;br /&gt;Here is the steps to hide and show the controls using Yes and No option buttons&lt;br /&gt;&lt;br /&gt;1.	Open form in designer mode&lt;br /&gt;2.	Go to Properties window of 'Task 2 Complete' section&lt;br /&gt;3.	click on Display tab&lt;br /&gt;4.	click on 'conditional formatting' button&lt;br /&gt;5.	click on 'Add' button&lt;br /&gt;6.	select the option radio button field in the first drop down box&lt;br /&gt;7.	select 'is not equal to' in the second dropdown box&lt;br /&gt;8.	Select Type a number' in third drop down box and enter '1'&lt;br /&gt;9.	Check 'Hide this control' check box&lt;br /&gt;10.	Click 'Ok' three times&lt;br /&gt;11.	Similarly Go to Properties window of the text Box&lt;br /&gt;12.	click on Display tab&lt;br /&gt;13.	click on 'conditional formatting' button&lt;br /&gt;14.	click on 'Add' button&lt;br /&gt;15.	select the option radio button field in the first drop down box&lt;br /&gt;16.	select 'is not equal to' in the second dropdown box&lt;br /&gt;17.	Select Type a number' in third drop down box and enter '0'&lt;br /&gt;18.	Check 'Hide this control' check box&lt;br /&gt;19.	Click 'Ok' three times&lt;br /&gt;20.	Save the form&lt;br /&gt;</description></item><item><title>YES/NO Button</title><link>https://www.infopathdev.com:443/forums/thread/1961.aspx</link><pubDate>Tue, 10 Apr 2007 19:30:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:1961</guid><dc:creator>mbaumhofer</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/1961.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=1961</wfw:commentRss><description>I am trying to create a document with choices.&lt;br /&gt;&lt;br /&gt;Here is a sample layout of what I am trying to do.&lt;br /&gt;&lt;br /&gt;Is Task 1 complete?&lt;br /&gt;(button) Yes  (button) No&lt;br /&gt;&lt;br /&gt;Would like to accomplish:&lt;br /&gt;1) If they select "Yes" (button) it will take them to Is Task 2 complete?&lt;br /&gt;2) If they select "No" (button) it will display an text error box to do (X before proceeding)&lt;br /&gt;&lt;br /&gt;Then if they go to Task 2 the same thing and so on, and so on.</description></item></channel></rss>