<?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: change button</title><link>https://www.infopathdev.com:443/forums/thread/70685.aspx</link><pubDate>Wed, 28 Sep 2011 18:05:17 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:70685</guid><dc:creator>Doreen</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/70685.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=70685</wfw:commentRss><description>&lt;p&gt;Thanks your suggestion worked!&amp;nbsp; I moved the&amp;nbsp;clear radio buttons rule to the top of the rules list.&amp;nbsp; For the 2 switch rules (now 2nd&amp;nbsp;&amp;amp; 3rd in line), I checked &amp;quot;Stop processing&amp;nbsp;rules when this rule finishes&amp;quot;.&lt;/p&gt;&lt;p&gt;The reason I have the same rules on both radio buttons and the text box is because it&amp;#39;s the only way I can get the correct value to appear in the textbox.&amp;nbsp; I tried puting the&amp;nbsp;set of rules to on only one control initially (then&amp;nbsp;moving it to various controls) but it won&amp;#39;t&amp;nbsp; fire - it only fires when the exact same rules are applied to all controls involved.&lt;/p&gt;&lt;p&gt;&amp;nbsp;Thanks again for taking the time to venture into this!&lt;/p&gt;&lt;p&gt;&lt;br /&gt;Doreen&lt;/p&gt;</description></item><item><title>Re: change button</title><link>https://www.infopathdev.com:443/forums/thread/70683.aspx</link><pubDate>Wed, 28 Sep 2011 17:32:33 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:70683</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/70683.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=70683</wfw:commentRss><description>&lt;p&gt;Ok, the issue here is that you have some pretty convoluted logic going on.&amp;nbsp; You have rules on all of the option buttons and rules on the textbox and through their interaction, you are winding up with the result you are seeing.&lt;/p&gt;
&lt;p&gt;It may be sub-optimal, but how about adding a &lt;strong&gt;Process&lt;/strong&gt; button that determines the outcome when it&amp;#39;s clicked, instead of having rules on all the various fields?&lt;/p&gt;
&lt;p&gt;Another issue on the button you have is that the first rule can change the field from Local to Non-local, and then the second rule sees that the value is Non-local and then changes it back to Local.&lt;/p&gt;
&lt;p&gt;To prevent this, you can make use of the &amp;quot;Don&amp;#39;t run remaining rules if the condition of this rule is met&amp;quot; option.&amp;nbsp; This can prevent the rule that resets the option buttons from firing, so you&amp;#39;ll want to move that up to be the first rule on the button.&lt;/p&gt;</description></item><item><title>Re: change button</title><link>https://www.infopathdev.com:443/forums/thread/70682.aspx</link><pubDate>Wed, 28 Sep 2011 16:04:29 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:70682</guid><dc:creator>Doreen</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/70682.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=70682</wfw:commentRss><description>Ok the xsn file was too large to attach so I removed some sections leaving only those sections that pertain to the problem.</description></item><item><title>Re: change button</title><link>https://www.infopathdev.com:443/forums/thread/70681.aspx</link><pubDate>Wed, 28 Sep 2011 15:49:10 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:70681</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/70681.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=70681</wfw:commentRss><description>&lt;p&gt;The approach you&amp;#39;re describing should work.&amp;nbsp; Must be some small detail that&amp;#39;s messing things up.&amp;nbsp; Could you attach an example of an XSN where this isn&amp;#39;t working?&lt;/p&gt;</description></item><item><title>change button</title><link>https://www.infopathdev.com:443/forums/thread/70677.aspx</link><pubDate>Wed, 28 Sep 2011 15:11:58 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:70677</guid><dc:creator>Doreen</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/70677.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=70677</wfw:commentRss><description>&lt;p&gt;I need help figuring out how to make a button switch back and forth&amp;nbsp;between two values in a text box.&amp;nbsp; When&amp;nbsp;1st value is displayed, click button and the&amp;nbsp; 2nd value is displayed.&amp;nbsp; When 2nd value is displayed, click button and 1st value is displayed again and so on.&lt;/p&gt;&lt;p&gt;The value in the text box is determined when a certain&amp;nbsp;combination&amp;nbsp;of radio buttons is checked. There are 2 sets of 2&amp;nbsp;(Yes/No) radio buttons.&amp;nbsp; If yes and yes are checked then value1 appears in text box.&amp;nbsp; Any other combination (yes/no, no/yes or no/no) then value2 appears in text box.&amp;nbsp; &lt;/p&gt;&lt;p&gt;&amp;nbsp;The idea is the user answers two question to determine the value but they are also given ability to change the answer if they want to.&amp;nbsp; So I&amp;#39;d also like to clear the radio buttons when the switching (change button is clicked) occurs.&lt;/p&gt;&lt;p&gt;&amp;nbsp;I can get the button to clear the radio buttons and I can get the text box value to change once, but on 2nd and subsequent clicks, it doesn&amp;#39;t change back&amp;nbsp;again.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; For the switch&amp;nbsp;rules on the button I have 2 rules:&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;em&gt;&amp;nbsp;Rule 1 -&amp;nbsp;if textBox = value1, set textBox value = value2&lt;/em&gt;&lt;/p&gt;&lt;p&gt;&lt;em&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Rule 2 - if textBox = value2, set textBox value = value1&lt;/em&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;For the clear portion of the button I have 1 rule&lt;/p&gt;&lt;p&gt;&lt;em&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Rule 3 - if radioButton1 is not blank, or radioButton2 is not blank, set radioButton1 = &amp;quot;, and set radioButton2 value = &amp;quot;&amp;quot;&lt;/em&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;Any suggestions?&lt;/p&gt;</description></item></channel></rss>