<?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>Controls</title><link>https://www.infopathdev.com:443/forums/43.aspx</link><description> </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Creating multiple-condition rules for option buttons</title><link>https://www.infopathdev.com:443/forums/thread/48883.aspx</link><pubDate>Tue, 10 Nov 2009 21:48:01 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:48883</guid><dc:creator>warrtalon</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/48883.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=48883</wfw:commentRss><description>&lt;p&gt;You can set the default value as Unknown, and then when option buttons are selected, fire a rule that sets it to No if not all buttons are selected and it&amp;#39;s not already set to No, but set it to Yes if all buttons are selected and it&amp;#39;s not already set to Yes.&amp;nbsp; Each button would have the same rules.&lt;/p&gt;</description></item><item><title>Re: Creating multiple-condition rules for option buttons</title><link>https://www.infopathdev.com:443/forums/thread/48881.aspx</link><pubDate>Tue, 10 Nov 2009 20:33:39 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:48881</guid><dc:creator>nitsuj</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/48881.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=48881</wfw:commentRss><description>&lt;p&gt;Hi everyone, one more quick question regarding this...&lt;/p&gt;
&lt;p&gt;Is there a way for the final text box to have a third state?&amp;nbsp; For instance, can I somehow have the text box default read &amp;quot;Unknown&amp;quot; until one of the preceding option buttons gets clicked, at which point the text box will read &amp;quot;No&amp;quot;, until all option buttons&amp;nbsp;are clicked&amp;nbsp;&amp;quot;Yes&amp;quot;, at which point the text box will also read &amp;quot;Yes&amp;quot;?&lt;/p&gt;
&lt;p&gt;I could see this possibly working if I could say &amp;quot;optionButton1 = stateless and optionButton2 = stateless&amp;quot; then text box = &amp;quot;Unknown&amp;quot;.&amp;nbsp; I&amp;#39;m sure &amp;quot;stateless&amp;quot; is wrong, but something close to it.&lt;/p&gt;
&lt;p&gt;Thanks again in advance!&lt;/p&gt;</description></item><item><title>Re: Creating multiple-condition rules for option buttons</title><link>https://www.infopathdev.com:443/forums/thread/48480.aspx</link><pubDate>Sun, 01 Nov 2009 21:23:09 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:48480</guid><dc:creator>nitsuj</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/48480.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=48480</wfw:commentRss><description>&lt;p&gt;Jimmy, you&amp;#39;re awesome!!&amp;nbsp; That worked!&lt;/p&gt;&lt;p&gt;Thanks so much for your help! &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Creating multiple-condition rules for option buttons</title><link>https://www.infopathdev.com:443/forums/thread/48466.aspx</link><pubDate>Sun, 01 Nov 2009 00:27:11 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:48466</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/48466.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=48466</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Rules only have any effect when the field they are attached to changes value.&amp;nbsp; They won&amp;#39;t fire if some other field that&amp;#39;s referenced in the rule changes value.&lt;/p&gt;&lt;p&gt;&amp;nbsp;Try this:&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;Set the default value of your final text box to be something like this:&lt;br /&gt;&lt;/p&gt;&lt;blockquote&gt;(optionButton1 = &amp;#39;Yes&amp;#39; and optionButton2 = &amp;#39;Yes&amp;#39;, etc...)&lt;/blockquote&gt;&lt;/blockquote&gt;&lt;blockquote&gt;This will cause it to take on a value of &amp;#39;true&amp;#39; or &amp;#39;false when one of the option buttons changes.&lt;/blockquote&gt;&lt;blockquote&gt;Then add two rules to the field of that text box:&lt;/blockquote&gt;&lt;blockquote&gt;&lt;blockquote&gt;Condition: finalField = true&lt;br /&gt;Action: Set finalField to the value &lt;b&gt;Yes&lt;/b&gt;&lt;/blockquote&gt;&lt;blockquote&gt;Condition: finalField = false&lt;br /&gt;Action: Set finalField to the value &lt;b&gt;No&lt;/b&gt;&lt;/blockquote&gt;&lt;/blockquote&gt;&lt;blockquote&gt;This will immediately change the value of the field to Yes or No when one of the option buttons causes it to change to true or false.&lt;/blockquote&gt;&lt;blockquote&gt;Also add precisely the same two rules to the set of form load rules to set the initial value of the field.&lt;br /&gt;&lt;/blockquote&gt;</description></item><item><title>Re: Creating multiple-condition rules for option buttons</title><link>https://www.infopathdev.com:443/forums/thread/48463.aspx</link><pubDate>Sat, 31 Oct 2009 20:49:18 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:48463</guid><dc:creator>nitsuj</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/48463.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=48463</wfw:commentRss><description>&lt;p&gt;Thank you for the reply!&lt;/p&gt;
&lt;p&gt;I actually need the 9 Yes/No fields to be Yes/No, so the 1/0 idea probably wouldn&amp;#39;t work for me.&amp;nbsp; I also need the value of the final Yes/No text box, so it does need to be text instead of an expression.&lt;/p&gt;
&lt;p&gt;I hadn&amp;#39;t thought about writing an expression instead of setting multiple conditions, so I tried it out&amp;nbsp;but it still doesn&amp;#39;t seem to want to work.&amp;nbsp; Here&amp;#39;s the curious thing: when I try to set the rule for the final Yes/No text box (i.e. if optionButton1 = &amp;quot;Yes&amp;quot; then set this box to &amp;quot;Yes&amp;quot;, etc) it doesn&amp;#39;t work.&amp;nbsp; But if I set the condition on the option button itself (i.e. if this button = &amp;quot;Yes&amp;quot; then set the final text box to &amp;quot;Yes&amp;quot;), then it works.&amp;nbsp; Trying to throw in additional option buttons to the expression causes it not to work though, and setting a rule for each of the option buttons wouldn&amp;#39;t be right since I need ALL of them to be &amp;quot;Yes&amp;quot; for the final text box to be &amp;quot;Yes&amp;quot;.&lt;/p&gt;
&lt;p&gt;Thanks for your help so far.&amp;nbsp; I&amp;#39;ll keep messing it and see if I can figure out what I&amp;#39;m doing wrong.&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;</description></item><item><title>Re: Creating multiple-condition rules for option buttons</title><link>https://www.infopathdev.com:443/forums/thread/48444.aspx</link><pubDate>Fri, 30 Oct 2009 23:18:16 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:48444</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/48444.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=48444</wfw:commentRss><description>&lt;p&gt;Hi -&lt;/p&gt;
&lt;p&gt;Have you thought about having your options be 1 and 0? Then you could sum all the fields and if the total = 9 (9 fields, right?) your text box could be Yes. If the total is less than 9, your text box could be No. (As an aside, if you don&amp;#39;t need to store that value for anything, perhaps use a couple of expression boxes instead and conditionally format them?)&lt;/p&gt;
&lt;p&gt;That being said, what you suggested should work. I&amp;#39;d guess your issue might be with case (if your option has a value of &amp;#39;yes&amp;#39; and your condition is &amp;#39;Yes&amp;#39;, that would evaluate to false). You may want to verify the values for each button are what you think, case included, and try again....&lt;/p&gt;
&lt;p&gt;Oh, and the 5 conditions thing? You can work around that. Change the first dropdown in your condition to &amp;#39;The expression&amp;#39; then type away, like this:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;my:field1 = &amp;#39;yes&amp;#39; &lt;strong&gt;and&lt;/strong&gt; my:field2 = &amp;#39;yes&amp;#39; &lt;strong&gt;and &lt;/strong&gt;my:field3 = &amp;#39;yes&amp;#39; &lt;strong&gt;....&lt;/strong&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;That&amp;#39;s three conditions right there, but only using up one line in your &amp;#39;allowed&amp;#39; 5 conditions... &lt;/p&gt;</description></item><item><title>Creating multiple-condition rules for option buttons</title><link>https://www.infopathdev.com:443/forums/thread/48437.aspx</link><pubDate>Fri, 30 Oct 2009 19:04:32 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:48437</guid><dc:creator>nitsuj</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/48437.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=48437</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m trying to do something which seems simple but I can&amp;#39;t seem to find the answer.&amp;nbsp; Basically, I have 9 option buttons (well, 18 buttons total, with&amp;nbsp;Yes and No buttons&amp;nbsp;bound to 9 fields)&amp;nbsp;with values of Yes/No.&amp;nbsp; I want a text box to display &amp;quot;Yes&amp;quot; if all of the option buttons have values of &amp;quot;Yes&amp;quot;, and &amp;quot;No&amp;quot; if any of the buttons are set to &amp;quot;No&amp;quot;.&amp;nbsp; I&amp;#39;ve tried creating a rule that says &amp;quot;If button1 = yes AND button2 = Yes (and so forth), then text box = &amp;quot;Yes&amp;quot;, but it doesn&amp;#39;t seem to work for more than one option button.&lt;/p&gt;
&lt;p&gt;I know rules can only have 5 conditions, so I was going to chunk them up into two additional Yes/No fields, but I would still run into the same problem.&amp;nbsp; Anybody know what I may be doing wrong, or what (preferably codeless) alternative I can try?&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;</description></item></channel></rss>