Search - InfoPath Dev Sign in | Join | Help InfoPath Dev InfoPath Dev is dedicated to bringing you the information and tools you need to be successful in your Microsoft Office InfoPath development projects. Home Blogs Forums Photos Downloads Search More Search Options Page 4 of 14 (139 items) « First ... < Previous 2 3 4 5 6 Next > ... Last » Re: Date Validation You will need code for that. Here is a VBScript sample code that calculates the difference between 2 date fields, named date1 and date2: Sub CTRL3_5_OnClick(eventObj) Dim nodeDate1 Dim nodeDate2 Dim dt1Val Dim dt2Val Dim daysElapsed Set nodeDate1 = XDocument.DOM.selectSingleNode(''//my:myFields/my:date1'') Set nodeDate2 = ... Posted to Newbie Questions (Forum) by Stephanie Cantwell on 06-05-2006 Re: Repeating Cascade List Problem Hi Taffman, Make sure you are entering the value using “Insert Field or Group” and selecting the value from your secondary data source. Do not enter it by typing it in. Hope this helps. Posted to Newbie Questions (Forum) by Stephanie Cantwell on 06-05-2006 Re: calculation2 Hi Marcellino, I got your email and I think I understand what you are trying to accomplish. However, not having enough information, I can not tell why your code is not working. Maybe you can rename your source file and resend it. Posted to Newbie Questions (Forum) by Stephanie Cantwell on 06-04-2006 Re: Drop down list with Repeated Section. Hi, Partha, Welcome to the forum. Assuming you are going to copy all the nodes over based on the customer you selected in the drop down list, you will most likely need to use code for that. You will want to clone the repeating nodes from the secondary data source and append to the main dom. Hope this helps. Posted to Controls (Forum) by Stephanie Cantwell on 06-04-2006 Re: Required Controls Left Blank But Can Still Submit You are welcome, Deb. :-) The { }'s are required to group the code to execute for the IF condition. The code previously would always return after the if statement was executed. Posted to General (Forum) by Stephanie Cantwell on 04-24-2006 Re: Required Controls Left Blank But Can Still Submit Try this: function CTRL19_5::OnClick(eventObj) { if (XDocument.Errors.Count > 0) { XDocument.UI.Alert(''Required information is missing as indicated by the red asterisk(s).'') return; } XDocument.Submit() Application.ActiveWindow.Close(true); } Posted to General (Forum) by Stephanie Cantwell on 04-24-2006 Re: Required Controls Left Blank But Can Still Submit Sorry, the above reply is not what you are looking for. Look at this thread instead.http://www.infopathdev.com/forums/topic.asp?TOPIC_ID=33 Posted to General (Forum) by Stephanie Cantwell on 04-24-2006 Re: Required Controls Left Blank But Can Still Submit Hi Deb, Check out this thread:http://www.infopathdev.com/forums/topic.asp?TOPIC_ID=1123&SearchTerms=error,validation,required,field Posted to General (Forum) by Stephanie Cantwell on 04-24-2006 Re: Required Controls Left Blank But Can Still Submit I think Deb is correct. Close the From action only closes the form itself, not the InfoPath application. You still need the Application.ActiveWindow.Close(true) to close the application. Posted to General (Forum) by Stephanie Cantwell on 04-23-2006 Re: How to pre-populate user id In C# and VB.net is Environment.UserName. Posted to Newbie Questions (Forum) by Stephanie Cantwell on 04-23-2006 Page 4 of 14 (139 items) « First ... < Previous 2 3 4 5 6 Next > ... Last » Copyright © 2003-2019 Qdabra Software. All rights reserved.View our Terms of Use.