<?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>Newbie Questions</title><link>https://www.infopathdev.com:443/forums/39.aspx</link><description>New to InfoPath? Search to see if your question has already been answered. If it has not, then ask it here or the appropriate topic forum.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Concat for conditional defaults</title><link>https://www.infopathdev.com:443/forums/thread/24556.aspx</link><pubDate>Mon, 19 Nov 2007 21:57:24 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:24556</guid><dc:creator>Clay Fox</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/24556.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=24556</wfw:commentRss><description>&lt;p&gt;I would use conditions in&amp;nbsp;a rule maybe place it on the Outstanding Flag&amp;nbsp;check box and make one for true and false if necessary and pull the check out of the formula.&lt;/p&gt;
&lt;p&gt;So create a rule with a condition OM=1 setfield with formula where you replace not(not(Outstanding_flag)) with 1&lt;/p&gt;
&lt;p&gt;Hope that helps&lt;/p&gt;</description></item><item><title>Concat for conditional defaults</title><link>https://www.infopathdev.com:443/forums/thread/24555.aspx</link><pubDate>Mon, 19 Nov 2007 20:28:36 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:24555</guid><dc:creator>gotmilk1977</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/24555.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=24555</wfw:commentRss><description>&lt;p&gt;I&amp;#39;m trying to create a conditional default for a field and am having problems with the &amp;quot;else&amp;quot; clause.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Formula:&amp;nbsp; concat(substring(outstanding_max, 1, not(not(Outstanding_Flag)) * string-length(outstanding_max)), substring(no_outstanding_max, 1, (not(Outstanding_Flag)) * string-length(no_outstanding_max)))&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Outstanding_flag is a checkbox defaulted to checked with a value of 1 for yes and 0 for clear.&amp;nbsp; Outstanding Max and no_outstanding_max are both textboxes that resolve to 30 and 20 respectively.&amp;nbsp; My problem is that I can&amp;#39;t ever get the false condition (2nd substring) to fire.&amp;nbsp; Whether the checkbox is checked or not it always fires the first substring.&lt;/p&gt;</description></item></channel></rss>