<?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: How to change the operation in a formula based on a field selection</title><link>https://www.infopathdev.com:443/forums/thread/91821.aspx</link><pubDate>Thu, 01 Aug 2013 03:09:55 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:91821</guid><dc:creator>donstephen</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/91821.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=91821</wfw:commentRss><description>&lt;p&gt;Hi Joe920,&lt;/p&gt;
&lt;p&gt;One solution I can think of is by creating two hidden fields with different operations that runs and sets&amp;nbsp;another field&amp;nbsp;to show a result if a certain condition has been met. &lt;/p&gt;
&lt;p&gt;Example:&lt;/p&gt;
&lt;p&gt;field A + field B =&amp;nbsp;&lt;strong&gt;field E&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;field C contains the formula A + B&lt;br /&gt;field D contains the formula A&amp;nbsp;- B&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Rule 1:&lt;/strong&gt; &lt;br /&gt;Condition: if field B &amp;gt; X&lt;br /&gt;Action: Set field E to the value of C.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Rule 2:&lt;br /&gt;&lt;/strong&gt;Condition: if field B &amp;lt; X&lt;br /&gt;Action: Set field E to the value of D.&lt;/p&gt;</description></item><item><title>How to change the operation in a formula based on a field selection</title><link>https://www.infopathdev.com:443/forums/thread/91789.aspx</link><pubDate>Tue, 30 Jul 2013 20:46:50 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:91789</guid><dc:creator>Joe920</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/91789.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=91789</wfw:commentRss><description>I started out with a simple formula to add to fields in my InfoPath form;&lt;br /&gt;&lt;br /&gt;(CurrentDriveCapacity) + (CapacitytoAdd)&lt;br /&gt;&lt;br /&gt;How can I change the operation of adding the two fields to subtracting one from the other based on a setting of another field?</description></item></channel></rss>