<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/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>Conditional Default Values</title><link>http://blogs.msdn.com/b/infopath/archive/2006/11/27/conditional-default-values.aspx</link><description>Sometimes you want the default value of a field to be dependent upon a condition. However, there isn’t any direct functionality to support IF statements in the default values of fields. Substituting a rule for a default value only gets you so far, as</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: Conditional Default Values</title><link>http://blogs.msdn.com/b/infopath/archive/2006/11/27/conditional-default-values.aspx#10304232</link><pubDate>Fri, 11 May 2012 13:55:12 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10304232</guid><dc:creator>Jim Gagliardo</dc:creator><description>&lt;p&gt;Thanks for this post. &amp;nbsp;Not much documentation out there for this.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10304232" width="1" height="1"&gt;</description></item><item><title>re: Conditional Default Values</title><link>http://blogs.msdn.com/b/infopath/archive/2006/11/27/conditional-default-values.aspx#10243724</link><pubDate>Fri, 02 Dec 2011 13:52:26 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10243724</guid><dc:creator>Scott Heim</dc:creator><description>&lt;p&gt;Hi Corrie,&lt;/p&gt;
&lt;p&gt;I should be able to assist but I would like to get a bit more information. So you have 3 fields on your View: FieldA, FieldB, FieldC. If &amp;quot;FieldA&amp;quot; contains data, you want to display that data in &amp;quot;FieldC&amp;quot;? Then if &amp;quot;FieldA&amp;quot; is blank you want to display &amp;quot;FieldB&amp;quot;? I just want to be sure I follow what you are trying to accomplish.&lt;/p&gt;
&lt;p&gt;Scott&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10243724" width="1" height="1"&gt;</description></item><item><title>re: Conditional Default Values</title><link>http://blogs.msdn.com/b/infopath/archive/2006/11/27/conditional-default-values.aspx#10243358</link><pubDate>Thu, 01 Dec 2011 15:02:12 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10243358</guid><dc:creator>Corrie Sigler</dc:creator><description>&lt;p&gt;I am trying to do something similar but can&amp;#39;t figure it out. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;If Field A contains data display in Field C otherwise display Field B. &amp;nbsp;Can you give me an example to resolve please.&lt;/p&gt;
&lt;p&gt;Many thanks!&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10243358" width="1" height="1"&gt;</description></item><item><title>re: Conditional Default Values</title><link>http://blogs.msdn.com/b/infopath/archive/2006/11/27/conditional-default-values.aspx#10181499</link><pubDate>Wed, 29 Jun 2011 17:30:06 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10181499</guid><dc:creator>Nicholas Lovell</dc:creator><description>&lt;p&gt;Actually, (ElseResult | TrueResult) == (TrueResult | ElseResult). &amp;nbsp;Check out the caveat noted above:&lt;/p&gt;
&lt;p&gt;... The node set will always be returned in document order. It does not matter what the order is in the parenthesis, as (field1 | field2) == (field2 | field1). Since you cannot change the node set ordering, you may have to modify your BoolCondition to be NOT-ed. For more information on document order, you can visit the w3.org page on XPaths.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10181499" width="1" height="1"&gt;</description></item><item><title>re: Conditional Default Values</title><link>http://blogs.msdn.com/b/infopath/archive/2006/11/27/conditional-default-values.aspx#10181304</link><pubDate>Wed, 29 Jun 2011 09:57:20 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10181304</guid><dc:creator>Mojtaba Aliakbari</dc:creator><description>&lt;p&gt;The expression &lt;/p&gt;
&lt;p&gt;if (BoolCondition) {&lt;/p&gt;
&lt;p&gt; &amp;nbsp; TrueResult&lt;/p&gt;
&lt;p&gt;} else {&lt;/p&gt;
&lt;p&gt; &amp;nbsp; ElseResult&lt;/p&gt;
&lt;p&gt;} &lt;/p&gt;
&lt;p&gt;becomes &lt;/p&gt;
&lt;p&gt;(ElseResult | TrueResult ) [(BoolCondition) + 1] &lt;/p&gt;
&lt;p&gt;not&lt;/p&gt;
&lt;p&gt;(TrueResult | ElseResult ) [(BoolCondition) + 1] &lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10181304" width="1" height="1"&gt;</description></item><item><title>re: Conditional Default Values</title><link>http://blogs.msdn.com/b/infopath/archive/2006/11/27/conditional-default-values.aspx#10176929</link><pubDate>Mon, 20 Jun 2011 12:00:34 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10176929</guid><dc:creator>Scott Heim</dc:creator><description>&lt;p&gt;Hi Joe,&lt;/p&gt;
&lt;p&gt;This example will only work when there is one test and the result is true or false...in your example, there are multiple tests. So the best way to accomplish what you need is to use a Rule on field1 (with 3 conditions) that sets the value of field2 based on the conditions you have in the Rule.&lt;/p&gt;
&lt;p&gt;Here is what I have as a sample:&lt;/p&gt;
&lt;p&gt;- Main Data Source:&lt;/p&gt;
&lt;p&gt;myFields&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; field1&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; field2&lt;/p&gt;
&lt;p&gt;- 3 Rules on field1 as follows:&lt;/p&gt;
&lt;p&gt;Rule 1:&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; Condition: field1 &amp;lt; 29&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; Action: Set a field&amp;#39;s value: field2 = &amp;quot;A&amp;quot;&lt;/p&gt;
&lt;p&gt;Rule 2:&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; Condition: field1 &amp;gt; 29 and field1 &amp;lt; 39&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; Action: Set a field&amp;#39;s value: field2 = &amp;quot;B&amp;quot;&lt;/p&gt;
&lt;p&gt;Rule 3:&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; Condition: field1 &amp;gt; 39 and field1 &amp;lt; 49&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; Action: Set a field&amp;#39;s value: field2 = &amp;quot;C&amp;quot;&lt;/p&gt;
&lt;p&gt;Scott&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10176929" width="1" height="1"&gt;</description></item><item><title>re: Conditional Default Values</title><link>http://blogs.msdn.com/b/infopath/archive/2006/11/27/conditional-default-values.aspx#10176877</link><pubDate>Mon, 20 Jun 2011 08:53:55 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10176877</guid><dc:creator>Joe</dc:creator><description>&lt;p&gt;How do I go about an situation like the following&lt;/p&gt;
&lt;p&gt;I want to create a conditional expression which will give a result with the following conditions&lt;/p&gt;
&lt;p&gt;If field1 &amp;lt; 29 = A&lt;/p&gt;
&lt;p&gt;If field1 &amp;gt;29 and &amp;lt;39 = B&lt;/p&gt;
&lt;p&gt;If field1 &amp;gt;39 and &amp;lt;49 = C&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10176877" width="1" height="1"&gt;</description></item><item><title>re: Conditional Default Values</title><link>http://blogs.msdn.com/b/infopath/archive/2006/11/27/conditional-default-values.aspx#10138349</link><pubDate>Tue, 08 Mar 2011 22:31:28 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10138349</guid><dc:creator>Jeff Mather</dc:creator><description>&lt;p&gt;Here&amp;#39;s a formula for the name of a day of the week, using the above technique, in case anyone could use it:&lt;/p&gt;
&lt;p&gt;concat(substring(&amp;quot;Sunday&amp;quot;, 1, (@DayOfWeek = 1) * string-length(&amp;quot;Sunday&amp;quot;)), substring(&amp;quot;Monday&amp;quot;, 1, (@DayOfWeek = 2) * string-length(&amp;quot;Monday&amp;quot;)), substring(&amp;quot;Tuesday&amp;quot;, 1, (@DayOfWeek = 3) * string-length(&amp;quot;Tuesday&amp;quot;)), substring(&amp;quot;Wednesday&amp;quot;, 1, (@DayOfWeek = 4) * string-length(&amp;quot;Wednesday&amp;quot;)), substring(&amp;quot;Thursday&amp;quot;, 1, (@DayOfWeek = 5) * string-length(&amp;quot;Thursday&amp;quot;)), substring(&amp;quot;Friday&amp;quot;, 1, (@DayOfWeek = 6) * string-length(&amp;quot;Friday&amp;quot;)), substring(&amp;quot;Saturday&amp;quot;, 1, (@DayOfWeek = 7) * string-length(&amp;quot;Saturday&amp;quot;)))&lt;/p&gt;
&lt;p&gt;I wish InfoPath didn&amp;#39;t make us jump through such awkward hoops to accomplish simple stuff like this!&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10138349" width="1" height="1"&gt;</description></item><item><title>re: Conditional Default Values</title><link>http://blogs.msdn.com/b/infopath/archive/2006/11/27/conditional-default-values.aspx#10137127</link><pubDate>Fri, 04 Mar 2011 22:08:27 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10137127</guid><dc:creator>Mark</dc:creator><description>&lt;p&gt;The disconnect between InfoPath 2010 and SharePoint seems very large. &amp;nbsp;IF statement functionality is allowed for default values in Sharepoint list fields. &amp;nbsp;Simply opening a form in InfoPath, making a minor layout change and publishing, breaks your default value because InfoPath 2010 does not allow IF statement functionality.&lt;/p&gt;
&lt;p&gt;Metadata fields don&amp;#39;t even try to work in InfoPath 2010. &amp;nbsp;As a customer, it&amp;#39;s very disheartening when you want to make a simple change in Sharepoint and it forces you to open up another tool (in this case InfoPath), and then the tool does not have what the user sees as basic functionality, or the functionality is completely different.&lt;/p&gt;
&lt;p&gt;It seems like the Sharepoint and InfoPath teams at Microsoft are working independently of each other, and there&amp;#39;s a major disjoint between the products. &amp;nbsp;Which, a user is expecting to be seemless between the products because SP forces InfoPath on the user.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10137127" width="1" height="1"&gt;</description></item><item><title>re: Conditional Default Values</title><link>http://blogs.msdn.com/b/infopath/archive/2006/11/27/conditional-default-values.aspx#10036087</link><pubDate>Thu, 08 Jul 2010 19:39:21 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10036087</guid><dc:creator>KLF</dc:creator><description>&lt;p&gt;Along the lines of conditional values- I am creating a form to be accessed in a browser and I am trying to set conditional formatting. I want to make a set of check boxes appear if one certain check box is checked (for instance field 1 is a check box- if they check box 1- fields 2 and 3 appear and are also check boxes). I have tried to set a rule and it&amp;#39;s not letting me. Please help!&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10036087" width="1" height="1"&gt;</description></item></channel></rss>