<?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: Calculating Two Different "Due Dates" depending on "Last Completed"</title><link>https://www.infopathdev.com:443/forums/thread/125430.aspx</link><pubDate>Mon, 15 Jan 2024 15:35:24 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:125430</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/125430.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=125430</wfw:commentRss><description>As we discovered in email, your rules were correct. The issue was with existing data - those due dates needed to be updated. You did that by toggling the location field for the TCS items so the due date was set correctly.</description></item><item><title>Re: Calculating Two Different "Due Dates" depending on "Last Completed"</title><link>https://www.infopathdev.com:443/forums/thread/125428.aspx</link><pubDate>Fri, 12 Jan 2024 22:49:48 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:125428</guid><dc:creator>ScottG</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/125428.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=125428</wfw:commentRss><description>I can&amp;#39;t thank you enough for your help!  I sent you an email.</description></item><item><title>Re: Calculating Two Different "Due Dates" depending on "Last Completed"</title><link>https://www.infopathdev.com:443/forums/thread/125427.aspx</link><pubDate>Fri, 12 Jan 2024 22:18:43 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:125427</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/125427.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=125427</wfw:commentRss><description>The rules get added to Location and to CPR Completed. Both of these fields could change and impact the result of the calculation. The rules then set the CPR Due Date field. I know you&amp;#39;ve checked that field no longer has a default, but maybe just verify that once more - you should be able to right click the field in the Fields task pane and check the properties of it.... I note from your original post that you&amp;#39;d found the &amp;quot;Refresh value when formula is recalculated&amp;quot; option, so it sounds like you know where to find the field properties. At any rate, feel free to attach the form to a reply (or email it to me, you have my email address) and I&amp;#39;m happy to take a look at it. It is kind of hard to guess what may be going wrong w/out seeing the form. :)</description></item><item><title>Re: Calculating Two Different "Due Dates" depending on "Last Completed"</title><link>https://www.infopathdev.com:443/forums/thread/125425.aspx</link><pubDate>Fri, 12 Jan 2024 21:17:57 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:125425</guid><dc:creator>ScottG</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/125425.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=125425</wfw:commentRss><description>I am actually going to start from scratch.  :)

There are currently no default values attached to any of my fields.  

The goal is if 

Location = TCS then there Completed CPR date + 1095 days = CPR DUE DATE
Location = Not TCS then there Completed CPR date + 730 days = CPR DUE DATE

Do I add the action rule to the Location, CPR Completed or CPR Due field?  

My action is:

Condition:  Location is equal to TCS AND CPR Completed is not blank
Rule Type: Action
Run these actions: Set a field&amp;#39;s value
Field&amp;#39;s value: CPR Due = addDays(CPR Completed, 1095)

Condition:  Location is not equal to TCS AND CPR Completed is not blank
Rule Type: Action
Run these actions: Set a field&amp;#39;s value
Field&amp;#39;s value: CPR Due = addDays(CPR Completed, 730)

Maybe?</description></item><item><title>Re: Calculating Two Different "Due Dates" depending on "Last Completed"</title><link>https://www.infopathdev.com:443/forums/thread/125424.aspx</link><pubDate>Fri, 12 Jan 2024 20:37:19 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:125424</guid><dc:creator>ScottG</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/125424.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=125424</wfw:commentRss><description>I double-checked and there is no default value.  I deleted those yesterday.  There are no location rules.</description></item><item><title>Re: Calculating Two Different "Due Dates" depending on "Last Completed"</title><link>https://www.infopathdev.com:443/forums/thread/125421.aspx</link><pubDate>Thu, 11 Jan 2024 23:24:19 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:125421</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/125421.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=125421</wfw:commentRss><description>Hmmm. So this is a list form? You&amp;#39;ve removed the default value from Due Date? You may need to double check your list and make sure that field doesn&amp;#39;t have a value. You can also attach your form in a reply under the Options tab and I&amp;#39;ll take a quick look and see if I can see what might be wrong. :)</description></item><item><title>Re: Calculating Two Different "Due Dates" depending on "Last Completed"</title><link>https://www.infopathdev.com:443/forums/thread/125420.aspx</link><pubDate>Thu, 11 Jan 2024 19:23:28 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:125420</guid><dc:creator>ScottG</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/125420.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=125420</wfw:commentRss><description>I thought it was working but my SharePoint list isn&amp;#39;t keeping the new dates when I hit save.  They automatically calculate when I add a new date for TCS 3 years but when I hit save it resorts back to 2 years.</description></item><item><title>Re: Calculating Two Different "Due Dates" depending on "Last Completed"</title><link>https://www.infopathdev.com:443/forums/thread/125419.aspx</link><pubDate>Thu, 11 Jan 2024 18:51:18 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:125419</guid><dc:creator>ScottG</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/125419.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=125419</wfw:commentRss><description>Hey Hilary,
Thank you for the add.  I thought I had it but looks I might have missed something.  I added two new rules attached to the Location Field.  Find attached picture.</description></item><item><title>Re: Calculating Two Different "Due Dates" depending on "Last Completed"</title><link>https://www.infopathdev.com:443/forums/thread/125418.aspx</link><pubDate>Thu, 11 Jan 2024 17:48:56 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:125418</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/125418.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=125418</wfw:commentRss><description>I would not use a default value for CPR Due Date. I would instead use rules. I would put the same rules on CPR Completed and on the Location field. The rules would have conditions. If the Location = A or B, and CPR Completed is not blank, set Due Date to CPR Completed + 2 years. If the location is not equal to A and not equal to B, and CPR Completed is not blank, set Due Date to CPR Completed + 3 years. Because the user changing the CPR Completed field OR the Location field would impact the value of the Due Date, you need to have the same rules on both fields. Remove the default value for CPR Completed entirely.</description></item><item><title>Calculating Two Different "Due Dates" depending on "Last Completed"</title><link>https://www.infopathdev.com:443/forums/thread/125417.aspx</link><pubDate>Thu, 11 Jan 2024 17:40:13 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:125417</guid><dc:creator>ScottG</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/125417.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=125417</wfw:commentRss><description>Hello All...Newbie here with a question.

I have taken a new job and inherited InfoPath awesomeness.  We have a training InfoPath form that has the following:

Area
Type of Training
Last Completed
Due Date

We have roughly 20 locations.  All but 1 location has a CPR Training of 2 years, while the 1 location has a 3 year requirement (which just changed).  

The current value is addDays(CPR Completed, 730)

That adds 2 years to every entry.  

Question(s):  Can we make it to where Location A &amp;amp; B = a 2 year due date for CPR and Location C = a 3 year due date for CPR with in the current value listed above?  If not, is there a way to make the CPR Due Date editable for all locations that still automatically calculates 2 years and we manually change Location C&amp;#39;s 3 years without causing any issues?  I noticed there is a button you can select &amp;quot;Refresh value when formula is recalculated&amp;quot;.  But it looks like that doesn&amp;#39;t help with my issue.

Thank you for your time
Scott</description></item></channel></rss>