Use our Google Custom Search for best site search results.
Search
-
Check out the following thread, it might what you are looking for:http://www.infopathdev.com/forums/topic.asp?TOPIC_ID=512
-
Is the server a SharePoint site or a standard website?
-
Is there another line following the error message?
-
Thank you for sharing this.
-
Here is the code sample using VBScript. You need to call it from OnAfterChange event.
Sub UpdateDateDiff
Dim fromDate
Dim toDate
Dim days
Dim daysNode
set daysNode = XDocument.DOM.selectSingleNode(''/my:myFields/my:DaysRemaining'')
fromDate = Trim(XDocument.DOM.selectSingleNode(''/my:myFields/my:FromDate'').text)
toDate = ...
-
It sounds like you don't have Visual Studio. Your options will be either VBScript or JScript. The code will be a bit different for each. Are you familiar at all with VB?
-
What language are you using? I can write a little piece of code to help out.
-
Unfortunately there is no DateDiff formula in InfoPath. You have use code.
-
This article has information regarding Date Calculations in InfoPath, which might answer your first question.
http://blogs.msdn.com/infopath/archive/2005/01/25/360318.aspx
-
You want to create a SharePoint list to contain the email list. Then you need to add the data connection to the list on your form. You can add the addresses to the To line in your submit logic.