<?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>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Radio Button Validation Rules Being Ignored</title><link>https://www.infopathdev.com:443/forums/thread/86708.aspx</link><pubDate>Mon, 04 Feb 2013 17:04:57 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:86708</guid><dc:creator>mnghost</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/86708.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=86708</wfw:commentRss><description>&lt;p&gt;Thanks for the replies.&lt;/p&gt;
&lt;p&gt;Jimmy, this is just a regular button with a series of actions attached to it, among which is a submit action. I need the button to set a few other field values when it is pressed so was not able to make it a&amp;nbsp;standard Submit button. My other validation rules run with the button press and stop the submit, though. It appears to be just the ones&amp;nbsp;I have attached to the radio buttons.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Jennifer, I have put a conditional rule on my button so its actions won&amp;#39;t fire if the radio button question is not answered and&amp;nbsp;I can take the further steps you suggest to display a message to the user in that event. That sounds like a usable workaround. I have to be honest, though,&amp;nbsp;I&amp;#39;m not real excited about building my own validation messaging functionality into the form when Infopath already claims this functionality and should be working. I guess I&amp;#39;m mainly trying to understand why all my other validations rules work and stop the submit from happening, but the ones&amp;nbsp;I put around the radio buttons do not. Is there something I am missing (an unanswered radio button set does return blank, right?), or are validation rules on radio buttons not meant to work this way?&lt;/p&gt;</description></item><item><title>Re: Radio Button Validation Rules Being Ignored</title><link>https://www.infopathdev.com:443/forums/thread/86680.aspx</link><pubDate>Mon, 04 Feb 2013 04:40:54 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:86680</guid><dc:creator>JenniferLindsay</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/86680.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=86680</wfw:commentRss><description>&lt;p&gt;Hi mnghost,&lt;/p&gt;&lt;p&gt;What field do you have your validation rule on?&amp;nbsp; Why not just&amp;nbsp;put a condition on your Submit button as follows:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;div&gt;MyRadioButton1 is not blank AND&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div&gt;MyRadioButton2 is not blank AND&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div&gt;CurrentView is equal to &amp;quot;MyView&amp;quot;&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;That way the Submit will only go through if all the radio buttons have been answered and the user is currently looking at the MyView view.&lt;/p&gt;&lt;p&gt;You can even add a rule to display a hidden &amp;quot;error message&amp;quot; section to let the user know why the Submit was not successful.&amp;nbsp; &lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;That said, here&amp;#39;s how I would do things:&lt;/p&gt;&lt;p&gt;&amp;nbsp;First, set up an error message that will display when the user tries to submit without filling out all the Yes/No radio button questions&lt;/p&gt;&lt;ol&gt;&lt;li&gt;&lt;div&gt;Add a TRUE/FALSE&amp;nbsp;field called DisplayErrorMessage and set it&amp;#39;s default value&amp;nbsp;to FALSE&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div&gt;Add a section&amp;nbsp;called ErrorMessage&amp;nbsp;and type in something meaningful,&amp;nbsp;like: &amp;quot;ERROR: you cannot submit this form unless you answer all the radio button&amp;nbsp;questions.&amp;quot;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div&gt;Put a condition on the ErrorMessage section to hide the section if DisplayErrorMessage&amp;nbsp;is equal to&amp;nbsp;FALSE&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div&gt;Put a button inside the ErrorMessage section called &amp;quot;Hide Message&amp;quot; and add a button rule to set DisplayErrorMessage to FALSE if the button is clicked&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;&lt;p&gt;Next, set up your Submit button to submit if all&amp;nbsp;radio button&amp;nbsp;questions have been answered, and to display the error message if not all of them have been answered&lt;/p&gt;&lt;ol&gt;&lt;li&gt;&lt;div&gt;Add an action&amp;nbsp;rule to your Submit button to Submit data only if the following conditions have been met:&lt;/div&gt;&lt;/li&gt;&lt;ul&gt;&lt;li&gt;&lt;div&gt;MyRadioButton1 is not blank AND&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div&gt;MyRadioButton2 is not blank AND&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div&gt;(add another condition for each additional radio button question) AND&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div&gt;CurrentView is equal to &amp;quot;MyView&amp;quot;&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;&lt;div&gt;For this action rule with conditions above, make sure you check the checkbox at the bottom of the rule pane that says &amp;quot;Don&amp;#39;t run remaining rules if the conditions of this rule are met.&amp;quot;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div&gt;Add another rule to your Submit button beneath the above rule. This rule will have no conditions, and will set the field DisplayErrorMessage to TRUE.&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;&lt;p&gt;&amp;nbsp;That&amp;#39;s it!&amp;nbsp; Now, when someone clicks the Submit button before filling out all the radio buttons, the rule to Submit data will NOT fire, and instead the rule setting DisplayErrorMessage to TRUE will fire.&amp;nbsp; Once that field is set to TRUE, the ErrorMessage section will become visible, and the user will see the message.&amp;nbsp; After the message has been read, the user can click&amp;nbsp;Hide Message to hide the error message section.&amp;nbsp; &lt;/p&gt;&lt;p&gt;&amp;nbsp;On the other hand, if the user clicks the Submit button after filling out all of the radio buttons, then the rule to Submit data WILL fire, successfully submitting the form data.&amp;nbsp; The next rule to set DisplayErrorMessage to TRUE will NOT fire, because you checked the box on the previous rule to not run any remaining rules.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Let me know if you have any questions!&lt;/p&gt;</description></item><item><title>Re: Radio Button Validation Rules Being Ignored</title><link>https://www.infopathdev.com:443/forums/thread/86679.aspx</link><pubDate>Mon, 04 Feb 2013 03:55:17 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:86679</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/86679.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=86679</wfw:commentRss><description>Could you go into a bit more detail about your submit button.&amp;nbsp; Is it configured as an actual &amp;quot;Submit&amp;quot; action, or is it an ordinary button using a series or rules to do the submit?</description></item><item><title>Radio Button Validation Rules Being Ignored</title><link>https://www.infopathdev.com:443/forums/thread/86674.aspx</link><pubDate>Sat, 02 Feb 2013 22:36:32 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:86674</guid><dc:creator>mnghost</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/86674.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=86674</wfw:commentRss><description>&lt;p&gt;I am designing a form in Infopath 2010 where I have multiple views and a set of radio buttons that I want to be required when the user is on that view. I can&amp;#39;t simply set the control to be required since this causes a validation error if I try and submit the form when I am not on the view. Instead, I put a validation rule that is supposed to fire under the condition of:&lt;/p&gt;
&lt;p&gt;MyRadioButton is blank AND&lt;br /&gt;Current_View = &amp;quot;MyView&amp;quot;&amp;nbsp; (Current_View is a variable I have set to keep track of what view the user is on)&lt;/p&gt;
&lt;p&gt;The radio buttons even light up red when I look at the view, so I know the conditions are being met correctly. But if I push the submit button without selecting any of the radio buttons it just happily goes on through. I really need it to stop the submit if the user has not selected any of those radio buttons. How can I get this to work?&lt;/p&gt;</description></item></channel></rss>