<?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>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Calculating multiple fields</title><link>https://www.infopathdev.com:443/forums/thread/124327.aspx</link><pubDate>Tue, 10 Aug 2021 15:05:21 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:124327</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/124327.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=124327</wfw:commentRss><description>I&amp;#39;d just use a default value for this to count all non-blank instances. See attached sample. Right click the link, save the file locally. Right click the saved file, select design. Preview, then fill in some data to see the count change.</description></item><item><title>Re: Calculating multiple fields</title><link>https://www.infopathdev.com:443/forums/thread/124326.aspx</link><pubDate>Tue, 10 Aug 2021 10:50:59 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:124326</guid><dc:creator>talync</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/124326.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=124326</wfw:commentRss><description>This might be easier to understand.  I have created a total of 5 &amp;quot;Traveler&amp;quot; Fields that pull info from a SharePoint directory of names.  I have a rule on each field that hides the field until the previous &amp;quot;is not empty&amp;quot;.  I then have a &amp;quot;Total Number of Travelers&amp;quot; field that needs to capture the number of &amp;quot;not empty&amp;quot; Traveler fields.  In order to do this, I have created 5 rules on the &amp;quot;Total Number of Travelers&amp;quot; field.  Rule 1: If &amp;quot;Traveler 5&amp;quot; is not blank, Set fields value to 5&amp;quot;.     Rule 2:  If &amp;quot;Traveler 4&amp;quot; is not blank, Set fields value to 4&amp;quot;.   And so on.  I also check the &amp;quot;Don&amp;#39;t run remaining rules if the condition of this rule is met&amp;quot; box.  Everything works great until I enter a 4th Traveler.  For some reason the count stops at 3.</description></item><item><title>Re: Calculating multiple fields</title><link>https://www.infopathdev.com:443/forums/thread/124325.aspx</link><pubDate>Mon, 09 Aug 2021 18:01:28 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:124325</guid><dc:creator>talync</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/124325.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=124325</wfw:commentRss><description>Thank you for your quick response.  In essence, I have independent sections with individual dropdowns.  Each is linked to the same internal directory.  Once you select a name for the first &amp;quot;Traveler&amp;quot; the second section and drop down appears, and so on.  I then have a field that should add the total number of drop downs (and therefor travelers) and add that number to another formula.  I&amp;#39;ve been able to capture the proper data by creating the following rules:    &amp;quot;If TRAVLER 5... is no blank... Set a fields value to 5&amp;quot;,     &amp;quot;If TRAVLER 4... is no blank... Set a fields value to 4&amp;quot;... ... ...

The issue I&amp;#39;m having with this is that it stops working after the 3rd Rule runs.  I have them inversed to look for Traveler 5 (the last option) and then to Traveler 4... Traveler 3... Traveler 2... Traveler 1,  and I select &amp;quot;Don&amp;#39;t run remaining rules if the condition of this rule is met&amp;quot;, but it still stops on the 3rd rule and won&amp;#39;t change my &amp;quot;Total Travelers&amp;quot; field to anything past 3.</description></item><item><title>Re: Calculating multiple fields</title><link>https://www.infopathdev.com:443/forums/thread/124323.aspx</link><pubDate>Mon, 09 Aug 2021 16:39:30 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:124323</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/124323.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=124323</wfw:commentRss><description>I don&amp;#39;t understand the question about &amp;quot;adding fields that are Name, Lookup Types&amp;quot; - can you provide a bit more info on that? Date diff in InfoPath is not easy (without third-party tools like qRules or FormsViewer). There are some suggestions here you might try: https://www.titanwolf.org/Network/q/9562e297-ba21-480b-847b-a512e2e77f8e/x</description></item><item><title>Calculating multiple fields</title><link>https://www.infopathdev.com:443/forums/thread/124322.aspx</link><pubDate>Mon, 09 Aug 2021 13:27:21 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:124322</guid><dc:creator>talync</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/124322.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=124322</wfw:commentRss><description>Good morning!  I have a unique situation where I need to come up with a total combined cost for travel for one or more travelers.  Using InfoPath 2013 and SP 2013.   

First, here is the end goal formula...
(Total number of travelers)x(total days traveling)x(preset per diem)


Now, here is the requested format...
Traveler 1 + Traveler 2 + ... = TOTAL TRAVELERS
(Travel End Date)-(Travel Start Date) = TOTAL TRAVEL DAYS


Now are the challenges... 
* Customer wants TOTAL TRAVEL DAYS to auto-populate when beginning and end date are entered. They don&amp;#39;t want the traveler to enter a number of days traveled.
* Customer wanted to select individual travelers from a list created in SharePoint.  I did this and made multiple lines within Sections that only appear after previous Section &amp;quot;Is Not EMPTY&amp;quot;.


My questions...
* How can I determine the total days using the &amp;quot;Start&amp;quot; and &amp;quot;End&amp;quot; date fields
* How can I add Fields that are Name, Lookup Types from a SharePoint List

Thank you!</description></item></channel></rss>