Add the following Java Script for the On Blur action: var d = util.scand("mm/dd/yy", event.value); // retrieve the date from the Date1 field var date2 = Field("Date2"); // creates a variable for the Date2 field var d2 = d.value Of(); // converts d2 to a number that we can calculate with d2 = 1000 * 60 * 60 * 24 * 90; // adds 90 days (1000 miliseconds times 60 seconds times 60 minutes times 24 hours times 90 days d3 = new Date(d2); // create a new date based on the d2 variable date2.value = util.printd("mm/dd/yy", d3); // format and assign the new date variable to the Date2 field Whenever Date1 loses focus, the new field gets calculated and assigned. I changed the trigger to Mouse Exit, which I'm not sure what that does either, but the only way I can get it to calculate the field is be in the field (Date2) and then click on the Select Object tool.
How do both of these triggers work, or is there a way to make it trigger on field exit?
The second part is when putting in a date, such as 4/10/2004, it returns the date of 8/10/04 the correct date (90 days) from the first date is 7/9/04 The On Blur event means that the field lost focus.
Of course that only works if your login system reports failed login attempts to a system log file.
If you provide more detailed information in your question I may edit the answer to be more specific. I am using a datapicker to allow the user to pick a date that is represented as: exp: 1/1/2009.Are you sure that the line that calculates the new date is correct?I just used copy and paste from this page to verify that I get the correct result.While having a strong password is a good first step, it needs to be backed up by additional measures on the server that prevent brute-force attacks.One popular approach is to install Fail2Ban to monitor log files and lock out repeat offendors.
The time value is simply a textbox that allows the user to enter a time in this format: hh:mm.