<?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: Clear and disable controls using rules and cond. formatting?</title><link>https://www.infopathdev.com:443/forums/thread/63232.aspx</link><pubDate>Sun, 16 Jan 2011 11:55:33 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:63232</guid><dc:creator>praveenbattula</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/63232.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=63232</wfw:commentRss><description>The same problem faced by me and here is the solution I came up with:
http://praveenbattula.blogspot.com/2011/01/clear-and-then-disable-controls-in.html</description></item><item><title>Re: Clear and disable controls using rules and cond. formatting?</title><link>https://www.infopathdev.com:443/forums/thread/21527.aspx</link><pubDate>Fri, 06 Jul 2007 20:17:51 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:21527</guid><dc:creator>Clay Fox</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/21527.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=21527</wfw:commentRss><description>&lt;p&gt;Its all a learning experience and you have to tinker a lot and try things to really know how they work.&lt;/p&gt;&lt;p&gt;One thing on your check boxes you have to give them a value for both checked and unchecked. They cannot be blank or they wont allow you to uncheck them by default. So you need true and false or yes and no or something.&lt;/p&gt;&lt;p&gt;That could be your issue.&lt;/p&gt;</description></item><item><title>Re: Clear and disable controls using rules and cond. formatting?</title><link>https://www.infopathdev.com:443/forums/thread/21526.aspx</link><pubDate>Fri, 06 Jul 2007 20:10:10 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:21526</guid><dc:creator>klilley</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/21526.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=21526</wfw:commentRss><description>&lt;p&gt;Ok, it&amp;#39;s working now.&amp;nbsp; I&amp;#39;m still not exactly sure what I am doing wrong, but I think it had to do with setting the checkbox value.&amp;nbsp; I think that that was failing and causing the rest of the actions to fail as well.&amp;nbsp; When I removed that action, the dropdown and textbox got cleared.&amp;nbsp; Sorry for taking up your time.&amp;nbsp; I&amp;#39;ll keep playing around with it until I get the checkboxes working as well.&amp;nbsp; I hadn&amp;#39;t thought of creating a blank textbox and setting the value equal to that.&amp;nbsp; That would probably work too.&amp;nbsp; I&amp;#39;m still pretty new to Infopath, and it&amp;#39;s quite a bit different than other tools I&amp;#39;ve used.&amp;nbsp; But so far so good.&amp;nbsp; Thanks a lot for the help.&lt;/p&gt;&lt;p&gt;- Kris&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Clear and disable controls using rules and cond. formatting?</title><link>https://www.infopathdev.com:443/forums/thread/21524.aspx</link><pubDate>Fri, 06 Jul 2007 19:36:21 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:21524</guid><dc:creator>Clay Fox</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/21524.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=21524</wfw:commentRss><description>&lt;p&gt;If you have another field that is blank you could try setting it to the value of that field. &lt;/p&gt;&lt;p&gt;Otherwise, as I said before, you could&amp;nbsp;use a non-blank value such as Unknown or Not Required?&lt;/p&gt;&lt;p&gt;I have never had a problem setting a field to blank before. So you are saying if the drop down has &amp;quot;Kohler&amp;quot; for the manufacturer and you set it to a blank value that it still has &amp;quot;Kohler&amp;quot; afterward? Another trick would be changing&amp;nbsp;a field to text box as a test and playing with that and verifying it is a drop down issue or not.&lt;/p&gt;</description></item><item><title>Re: Clear and disable controls using rules and cond. formatting?</title><link>https://www.infopathdev.com:443/forums/thread/21522.aspx</link><pubDate>Fri, 06 Jul 2007 19:26:20 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:21522</guid><dc:creator>klilley</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/21522.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=21522</wfw:commentRss><description>&lt;p&gt;The default value is blank, so the top row in the dropdown lists is blank.&amp;nbsp; The dropdown fields themselves can be submitted as blank too.&amp;nbsp; That works fine.&amp;nbsp; When I look at the datasource properties for the field, the default value box is blank, and the checkbox for &amp;quot;Cannot be blank&amp;quot; is cleared and grayed out.&amp;nbsp; So blank is the default and a legitimate value for any of the dropdowns.&amp;nbsp; I just don&amp;#39;t know how to specify it in the set field value rule.&amp;nbsp; Leaving the box blank like it is in the datasource properties default value box doesn&amp;#39;t seem to work.&lt;/p&gt;&lt;p&gt;- Kris&lt;br /&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Clear and disable controls using rules and cond. formatting?</title><link>https://www.infopathdev.com:443/forums/thread/21521.aspx</link><pubDate>Fri, 06 Jul 2007 18:17:14 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:21521</guid><dc:creator>Clay Fox</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/21521.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=21521</wfw:commentRss><description>&lt;p&gt;Yah for dropdowns you need to set them to a value that is in the list of options or they revert to the default. Is the blank row, often the Select... display value the default?&lt;/p&gt;&lt;p&gt;Maybe instead of blank set them to unknown or not required and have that as an option?&amp;nbsp; I think you are fighting the nature of the dropdowns and that if the field is blank then they use the default option.&amp;nbsp; You may want to hide them instead of disable and have a message appear or something.&lt;/p&gt;&lt;p&gt;Good Luck&lt;/p&gt;</description></item><item><title>Re: Clear and disable controls using rules and cond. formatting?</title><link>https://www.infopathdev.com:443/forums/thread/21520.aspx</link><pubDate>Fri, 06 Jul 2007 18:02:06 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:21520</guid><dc:creator>klilley</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/21520.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=21520</wfw:commentRss><description>&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="http://www.infopathdev.com/Themes/default/images/icon-quote.gif"&gt; &lt;strong&gt;Clay Fox:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;&lt;p&gt;So are you disabling the controls or hiding them?&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;/p&gt;&lt;p&gt;I&amp;#39;m just trying to disable them, don&amp;#39;t really want to hide them, although there are a few that are hidden by default; for those I just want to make sure that they get cleared and stay hidden if the user selects &amp;quot;None&amp;quot; from the first dropdown.&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="http://www.infopathdev.com/Themes/default/images/icon-quote.gif"&gt; &lt;strong&gt;Clay Fox:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;What are the values before?&lt;/p&gt;&lt;p&gt;What are the values after?&amp;nbsp; Are they the same?&amp;nbsp; Do you have default values for the fields?&lt;/p&gt;&lt;p&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;/p&gt;&lt;p&gt;What they&amp;#39;re filling in on these forms is information about water-related devices.&amp;nbsp; They usually start out blank, but sometimes, if the user is creating a new device record based on an existing record, they may have values in them already.&amp;nbsp; There are four dropdowns that handle the selections for Manufacturer, Model, Serial, and Size.&amp;nbsp; The checkboxes (labeled as &amp;quot;Unavailable&amp;quot;) are there to allow them to bypass fields that are otherwise required.&amp;nbsp; If they check the box, then the dropdown is no longer required.&amp;nbsp; If they select &amp;quot;Other&amp;quot; from the dropdowns, then a hidden textbox below the dropdown will become visible and be required.&lt;/p&gt;&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="http://www.infopathdev.com/Themes/default/images/icon-quote.gif"&gt; &lt;strong&gt;Clay Fox:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;&lt;/p&gt;&lt;p&gt;You are using the set fields value action and setting them to blank?&amp;nbsp; Try puttin in another value other than blank as a test.&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;/p&gt;&lt;p&gt;Yes. I create the rule, set the condition, select the field, and leave the last box blank.&amp;nbsp; That didn&amp;#39;t work.&amp;nbsp; When I tried changing the value to something else, it does work.&amp;nbsp; So the rule is firing and changing the value properly.&amp;nbsp; Now the question is what do I need to put in that second box for the value to make the dropdowns or textboxes blank, and to clear the checkboxes?&amp;nbsp; It looks like it&amp;#39;s trying to set them to &amp;quot;&amp;quot; right now.&amp;nbsp; The dropdowns do have a blank row at the top of them, so it&amp;#39;s a selection that&amp;#39;s possible for those.&lt;/p&gt;&lt;p&gt;&amp;nbsp;- Kris&lt;br /&gt;&amp;nbsp;&lt;/p&gt;&lt;br /&gt;</description></item><item><title>Re: Clear and disable controls using rules and cond. formatting?</title><link>https://www.infopathdev.com:443/forums/thread/21518.aspx</link><pubDate>Fri, 06 Jul 2007 17:07:52 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:21518</guid><dc:creator>Clay Fox</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/21518.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=21518</wfw:commentRss><description>&lt;p&gt;I do not know of a way to hide columns, rows yes, columns no.&amp;nbsp; But to simulate you could hide the conrtols in the column but that would be work.&lt;/p&gt;&lt;p&gt;So are you disabling the controls or hiding them?&lt;/p&gt;&lt;p&gt;What are the values before?&lt;/p&gt;&lt;p&gt;What are the values after?&lt;/p&gt;&lt;p&gt;Are they the same?&amp;nbsp; Do you have default values for the fields?&amp;nbsp; You are using the set fields value action and setting them to blank?&amp;nbsp; Try puttin in another value other than blank as a test.&lt;/p&gt;&lt;p&gt;Another debug trick&amp;nbsp;I use sometimes is put a rule on one of the fields that is misbehaving, with no conditions so it fires each time the value changes and then have the action be to display an expression box with the field&amp;#39;s value.&amp;nbsp; That way you should get a pop up with its value each time it changes and you can see if it is changing in the first place or changing and then changing back.&lt;/p&gt;</description></item><item><title>Re: Clear and disable controls using rules and cond. formatting?</title><link>https://www.infopathdev.com:443/forums/thread/21517.aspx</link><pubDate>Fri, 06 Jul 2007 17:00:22 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:21517</guid><dc:creator>klilley</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/21517.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=21517</wfw:commentRss><description>&lt;p&gt;Thanks for the quick reply.&amp;nbsp; Got a follow-up question for you now.&amp;nbsp; The form has two columns of controls on it in a table layout.&amp;nbsp; Is it possible to hide a section on the left without affecting the right-hand column?&lt;/p&gt;&lt;p&gt;Also, I looked through all my controls and none of them have any rules associated with them.&amp;nbsp; Just conditional formatting for some that are to be disabled in some cases.&amp;nbsp; But the rule I used with the first dropdown just doesn&amp;#39;t seem to be able to clear their values.&amp;nbsp; Very strange.&amp;nbsp; I couldn&amp;#39;t find anything in the help about whether you can change the value of a disabled control.&lt;/p&gt;&lt;p&gt;- Kris&lt;br /&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Clear and disable controls using rules and cond. formatting?</title><link>https://www.infopathdev.com:443/forums/thread/21492.aspx</link><pubDate>Fri, 06 Jul 2007 05:43:27 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:21492</guid><dc:creator>Clay Fox</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/21492.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=21492</wfw:commentRss><description>&lt;p&gt;I would put all the controls in a section if you can, then you can just hide the section and do not have to set conditional formating&amp;nbsp;on every field.&lt;/p&gt;&lt;p&gt;You would need to have a rule on your drop down with an action for each field to set it to blank or 0 or the defualt value or whatever.&amp;nbsp; Setting the field&amp;#39;s value should be independent of whether a control which is bound to it is visible or not. Make sure you do not have other rules or something that may override your changes.&lt;/p&gt;</description></item><item><title>Clear and disable controls using rules and cond. formatting?</title><link>https://www.infopathdev.com:443/forums/thread/21491.aspx</link><pubDate>Fri, 06 Jul 2007 04:57:08 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:21491</guid><dc:creator>klilley</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/21491.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=21491</wfw:commentRss><description>&lt;p&gt;I have a form with quite a few controls on it, some of which are only used in certain circumstances.&amp;nbsp; If the user selects &amp;quot;None&amp;quot; from the first dropdown list, then I want to disable the following 4 dropdowns, 3 textboxes, and 3 checkboxes, and make sure that any value that they had gets cleared out.&amp;nbsp; &lt;/p&gt;&lt;p&gt;Now I am using conditional formatting in all of those controls to disable them if the user selects &amp;quot;None&amp;quot;, and that works fine.&amp;nbsp; The problem is that even though I set up rules in the first dropdown to clear out the values in those fields, they seem to get disabled, but the values remain.&amp;nbsp; Does the conditional formatting happen first, disabling them so that the value can&amp;#39;t be changed by the rule, or am I just doing something wrong?&amp;nbsp; Is there a better way to do this?&amp;nbsp; Any help would be appreciated.&amp;nbsp; Thanks!&lt;/p&gt;&lt;p&gt;- Kris&lt;br /&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>