<?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: hiding information and requiring information</title><link>https://www.infopathdev.com:443/forums/thread/43679.aspx</link><pubDate>Wed, 01 Jul 2009 20:35:21 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:43679</guid><dc:creator>warrtalon</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/43679.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=43679</wfw:commentRss><description>&lt;p&gt;Should be able to do all of this fairly easily and in multiple possible ways.&amp;nbsp; Let&amp;#39;s see...&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;div&gt;You cannot dynamically make fields required in terms of the button that says &amp;quot;Cannot be Blank,&amp;quot; but you can do a few other things.&amp;nbsp; &lt;/div&gt;&lt;/li&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;div&gt;You can either use Data Validation with the statements &amp;quot;If Button 3 is Checked, and Field1 is empty, Display error message.&amp;quot;&amp;nbsp; You can do combos like that on each of your &amp;quot;required&amp;quot; fields and only if Button 3 is checked.&amp;nbsp; This puts a red dashed border around those fields and won&amp;#39;t allow submission unless they are filled out...or unless the button is changed.&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;You can do a reverse method that I like, which never results in an actual post-submission error but does a softer method.&amp;nbsp; You can put MANUAL RED ASTERISKS in the LABEL box for your controls (not the red asterisk that shows up in the control itself when selecting Cannot Be Blank) along with a message at the beginning that says &amp;quot;all red * are required fields prior to submissions.&amp;quot;&amp;nbsp; Then, put conditional formatting on your field that checks to make sure those &amp;quot;required&amp;quot; fields have data, and if not, DISABLE the button.&amp;nbsp; Also, put a message above the button that only displays when the button is disabled that says &amp;quot;all required fields must be filled before submitting.&amp;quot;&amp;nbsp; This makes it where users can never submit unless they&amp;#39;ve completed the form properly so that they never get the ugly post-submission errors that are non-specific.&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;
&lt;li&gt;
&lt;div&gt;Also easy with some simple conditional formatting.&amp;nbsp; Refer to my article - &lt;a title="User Roles in Browser-Enabled InfoPath&amp;nbsp;Forms" href="http://claytoncobb.wordpress.com/2009/06/14/user-roles-in-browser-enabled-forms/"&gt;&lt;strong&gt;&lt;font color="#536d88"&gt;User Roles in Browser-Enabled InfoPath&amp;nbsp;Forms&lt;/font&gt;&lt;/strong&gt;&lt;/a&gt;&amp;nbsp; - for an example on hiding fields with conditional formatting.&amp;nbsp; Yours is easier than the User Roles concept, but you may want to consider that as well.&amp;nbsp; You can simply put conditional formatting on those &amp;quot;required fields&amp;quot; that say &amp;quot;If Button 3 is not checked, then hide control.&amp;quot;&amp;nbsp; You wouldn&amp;#39;t need to include the other buttons, because the fields are not required if those buttons are selected, right?&amp;nbsp; You could just hide the fields unless button 3 is selected, and when it is selected, those fields will be required thanks to step 1.&amp;nbsp; As for other views, it&amp;#39;s all the same.&amp;nbsp; You can put all sorts of conditional logic on every control to hide or show it based off other selections in the form.&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;</description></item><item><title>hiding information and requiring information</title><link>https://www.infopathdev.com:443/forums/thread/43675.aspx</link><pubDate>Wed, 01 Jul 2009 19:46:03 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:43675</guid><dc:creator>Larry W. Virden</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/43675.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=43675</wfw:commentRss><description>&lt;p&gt;After getting quite a ways along with an InfoPath 2007 form, I am working on some display views for the data. &lt;/p&gt;
&lt;p&gt;&amp;nbsp;There are two specific things I&amp;#39;d like to be able to implement.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;1. If the user selects radio button choice 3, I would like to make several fields required. If no radio button is pressed, or radio button choice 1 or 2 is pressed, then the fields are not required.&lt;/p&gt;
&lt;p&gt;If I write a rule for the submit button, checking the conditions, how can I indicate an error? Since a user can skip around a form at their leisure, there&amp;#39;s really not&amp;nbsp;much else I can think of to do here.&lt;/p&gt;
&lt;p&gt;2. If the user doesn&amp;#39;t select a radio button at all, I would like to not display those required fields and the radio buttons in some of the views that I will be using to send emails, etc. Is there a way that I can go back and add some sort of layout or control around the fields, so that I can then write a display rule to hide the fields?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thank you so much for your ideas.&lt;/p&gt;</description></item></channel></rss>