<?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: Default State on Some Check Boxes Not Maintained in an Optional Section</title><link>https://www.infopathdev.com:443/forums/thread/56782.aspx</link><pubDate>Tue, 13 Jul 2010 04:25:30 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:56782</guid><dc:creator>cbrown00</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/56782.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=56782</wfw:commentRss><description>&lt;p&gt;Great...thx Jimmy for the explanation!&amp;nbsp; Big help for me.&lt;/p&gt;</description></item><item><title>Re: Default State on Some Check Boxes Not Maintained in an Optional Section</title><link>https://www.infopathdev.com:443/forums/thread/56781.aspx</link><pubDate>Tue, 13 Jul 2010 04:22:41 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:56781</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/56781.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=56781</wfw:commentRss><description>&lt;p&gt;It uses a trick that in a multiplication expression, (../my:field1 = &amp;quot;false&amp;quot;) will be treated as the value 1 when my:field1 is false, and 0 otherwise.&amp;nbsp; This is then multiplied by 5000, so it boils down to this:&lt;/p&gt;
&lt;p&gt;field1 is not false:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;substring(&amp;quot;Field 1 is checked &amp;quot;, 0)&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;field1 is false:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;substring(&amp;quot;Field 1 is checked &amp;quot;, 5000)&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;In the first case, the substring function&amp;nbsp;returns the value of the string from character 0 (the beginning) through the end, resulting in the whole string.&lt;/p&gt;
&lt;p&gt;In the second case, the result is the substring of the string starting&amp;nbsp;from character 5000 through the end.&amp;nbsp; Since the string is not 5000 characters long, the result is an empty string.&lt;/p&gt;</description></item><item><title>Re: Default State on Some Check Boxes Not Maintained in an Optional Section</title><link>https://www.infopathdev.com:443/forums/thread/56780.aspx</link><pubDate>Tue, 13 Jul 2010 02:39:19 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:56780</guid><dc:creator>cbrown00</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/56780.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=56780</wfw:commentRss><description>&lt;p&gt;Very interesting.&amp;nbsp; Thanks!&lt;/p&gt;
&lt;p&gt;Looking at the alternative approach you provided that uses&amp;nbsp;Boolean fields, I have a question about the formula in the second field copied below:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; substring(&amp;quot;Field 1 is checked &amp;quot;, 5000 * (../my:field1 = &amp;quot;false&amp;quot;))&lt;/p&gt;
&lt;p&gt;I&amp;#39;m still learning programming in InfoPath.&amp;nbsp; It looks like this approach uses a conditional &amp;quot;if&amp;quot; argument in field 2, but I don&amp;#39;t see how it&amp;#39;s done.&amp;nbsp;&amp;nbsp;What&amp;nbsp;does the &amp;quot;5000 * (../my:field1=&amp;quot;false&amp;quot;)&amp;quot; specify here in the second argument for this command?&lt;/p&gt;</description></item><item><title>Re: Default State on Some Check Boxes Not Maintained in an Optional Section</title><link>https://www.infopathdev.com:443/forums/thread/56754.aspx</link><pubDate>Mon, 12 Jul 2010 14:21:52 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:56754</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/56754.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=56754</wfw:commentRss><description>&lt;p&gt;The problem is that you have a space at the end of several of the Checked values.&amp;nbsp; When the XSN is saved, these spaces are truncated from the default values, and this causes the field values to not match the Checked values of the checkboxes, and they are resultingly treated as unchecked.&lt;/p&gt;
&lt;p&gt;I think I can see why you want to have spaces at the end, but I don&amp;#39;t think your design is going to work as-is.&amp;nbsp; Removing the spaces will fix the problem, but if you must have them, attached is a form that shows how you can accomplish the same thing, using Boolean fields bound to the checkboxes, and separate fields to contain the actual text.&lt;/p&gt;</description></item><item><title>Re: Default State on Some Check Boxes Not Maintained in an Optional Section</title><link>https://www.infopathdev.com:443/forums/thread/56752.aspx</link><pubDate>Mon, 12 Jul 2010 13:31:28 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:56752</guid><dc:creator>Qazi Anis</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/56752.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=56752</wfw:commentRss><description>&lt;p&gt;cbrown00, your form seems to be acting strange, i took a cursory look at it but couldnt find out the reason for such type of behaviour. i will try to get some time tomorrow and look at it properly and let you know my inputs.&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Default State on Some Check Boxes Not Maintained in an Optional Section</title><link>https://www.infopathdev.com:443/forums/thread/56609.aspx</link><pubDate>Wed, 07 Jul 2010 15:50:52 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:56609</guid><dc:creator>cbrown00</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/56609.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=56609</wfw:commentRss><description>&lt;p&gt;Qazi, file attached.&amp;nbsp; Blue section contains numerous check boxes, some of them retain desired default status (i.e, checked); the others will not.&amp;nbsp; I would like them all to be default &amp;quot;check&amp;quot; status.&lt;/p&gt;</description></item><item><title>Re: Default State on Some Check Boxes Not Maintained in an Optional Section</title><link>https://www.infopathdev.com:443/forums/thread/56534.aspx</link><pubDate>Tue, 06 Jul 2010 06:16:30 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:56534</guid><dc:creator>Qazi Anis</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/56534.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=56534</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;can you attach the template, it certainly seems to be strange&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Default State on Some Check Boxes Not Maintained in an Optional Section</title><link>https://www.infopathdev.com:443/forums/thread/56514.aspx</link><pubDate>Sat, 03 Jul 2010 06:36:06 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:56514</guid><dc:creator>cbrown00</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/56514.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=56514</wfw:commentRss><description>&lt;p&gt;I have 7 check boxes in an optional section control.&amp;nbsp; I want the default state on all to be &amp;quot;checked&amp;quot;.&amp;nbsp; The &amp;quot;value when checked&amp;quot; setting is populated for each check box control.&amp;nbsp; The &amp;quot;value when cleared&amp;quot; setting is blank.&amp;nbsp; After setting the default state in design mode, when I preview the form, the default state shows &amp;quot;checked&amp;quot; as it was set. However, when I save the form and re-open in design mode again, the default state reverts to &amp;quot;clear&amp;quot;.&amp;nbsp; Is there some setting&amp;nbsp;I need to make in the Optional Section control to make sure the check boxes retain their &amp;quot;checked&amp;quot; state?&amp;nbsp; Strange that one would retain it, and the others would not.&amp;nbsp; I see no difference in their configuration settings.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>