<?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: Rule not populating new Value</title><link>https://www.infopathdev.com:443/forums/thread/63845.aspx</link><pubDate>Thu, 03 Feb 2011 03:55:02 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:63845</guid><dc:creator>amenne</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/63845.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=63845</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Thank you for the help!&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Regards,&lt;/p&gt;&lt;p&gt;Adam &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Rule not populating new Value</title><link>https://www.infopathdev.com:443/forums/thread/63777.aspx</link><pubDate>Tue, 01 Feb 2011 16:06:35 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:63777</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/63777.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=63777</wfw:commentRss><description>&lt;p&gt;Hi:&lt;/p&gt;
&lt;p&gt;First, for item 1 -- this is a common misconception. There is a UI limitation on conditions -- true. IP will only let you add 5. But if you change the first dropdown in a condition to &amp;quot;the expression&amp;quot; you can write your own XPath, like this:&lt;/p&gt;
&lt;p&gt;my:field1 != &amp;#39;&amp;#39; and my:field2 != &amp;#39;&amp;#39; and my:field3 != &amp;#39;&amp;#39;&lt;/p&gt;
&lt;p&gt;And so forth, using &amp;quot;and&amp;quot;, &amp;quot;or&amp;quot; and parenthesis as needed to get your expression correct.&lt;/p&gt;
&lt;p&gt;If you don&amp;#39;t know what the XPath for a condition would be, leverage the UI -- set up the condition as usual with the dropdown boxes (selecting fields, operators, etc) and then change the first drop down to &amp;quot;the expression&amp;quot; -- your condition will be displayed as XPath in the text field after the first drop down.&lt;/p&gt;
&lt;p&gt;I, too, wish for some kind of &amp;quot;If - then&amp;quot; ability for rules or defaults....but we don&amp;#39;t have it. So it will need to be conditions and rules.&lt;/p&gt;
&lt;p&gt;Sometimes, the easiest route is to create a number of expression boxes (calculated values in IP 2010, I think), each using the correct formula for the different options you may wish to display, and then conditionally format the expression box. I think in a more complex scenario like yours, it is six of one, half dozen of another -- either way you are going to have a lot of conditions, since there are a lot of possible combinations.&lt;/p&gt;
&lt;p&gt;There is a work around for creating a type of conditional default, but the formulas appear to be somewhat complex and you may or may not want to invest the time in understanding them when you can work around this with conditional formatting. Here&amp;#39;s a &lt;a href="http://blogs.msdn.com/b/infopath/archive/2006/11/27/conditional-default-values.aspx" target="_blank"&gt;blog post&lt;/a&gt; from the InfoPath Team that outlines this idea.&lt;/p&gt;</description></item><item><title>Rule not populating new Value</title><link>https://www.infopathdev.com:443/forums/thread/63771.aspx</link><pubDate>Tue, 01 Feb 2011 05:01:53 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:63771</guid><dc:creator>amenne</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/63771.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=63771</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;I am trying to write a dynamic Scope of work. I have included 6 Check boxes&amp;nbsp; (MFG1, MFG2, MFG3, etc).&lt;br /&gt;The I want to dynamically populate &lt;font face="Arial" size="2"&gt;a string field based on which check boxes are selected.&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Arial" size="2"&gt;&lt;span style="font-size:10pt;"&gt;Example:&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Arial" size="2"&gt;&lt;span style="font-size:10pt;"&gt;&amp;quot;...delivery and installation of (field1)&lt;/span&gt;&lt;/font&gt; hereafter referred to as “system”. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;If MFG1 and MFG3 are selected, I want the above sentence to say:&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;font face="Arial" size="2"&gt;&lt;span style="font-size:10pt;"&gt;&amp;quot;...delivery 
and installation of &lt;u&gt;widget and wadget&lt;/u&gt;&lt;/span&gt;&lt;/font&gt; hereafter referred to as 
“system”. &lt;/p&gt;&lt;p&gt;&amp;nbsp;I have built a rule on MFG1 check box that says if the value of MFG1 is NOT equal to false, then change the value of field1 to widget. I have created a button that runs a rule to update field 1 but have a few problems,&lt;/p&gt;&lt;p&gt;1.) You can only have 5 check boxes to be checked in an individual rules list.&lt;br /&gt;2.) A customer may buy MFG1, 3, and 5 or Just 1 or all products, etc.. Any combination really. How do I build the logic to address whats has actually been selected?&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if my Newbie mind I would use some kind of nested If then statement with concat function. I just dont know how to do that in Infopath 2010. &lt;/p&gt;&lt;p&gt;3.) If one item is selected I would like just the word &amp;quot;widget&amp;quot; to appear, if two are selected It should read: &amp;quot;widget and widget&amp;quot; and if three or more are selected, it should read&amp;quot; &amp;quot;widget, widget, and widget&amp;quot;&lt;br /&gt;Basically, proper grammar with commas and the word &amp;quot;and&amp;quot; in the proper location.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Ideas? &lt;/p&gt;&lt;p&gt;Thanks&lt;/p&gt;&lt;p&gt;ADM &lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>