Click to See Complete Forum and Search --> : autofill date field + autofill modified date field


nato595
12-30-2005, 03:08 PM
This is a two part question.
Please check out my 'printable driver delivery ticket' that I'm working on at:
www.renopimpjuice.com/transport/ticket.htm (http://www.renopimpjuice.com/transport/ticket.htm)

My first question is;
1. How do I make the T1 text field at the top automatically fill in (with still be changable) with the current date in mm/dd/yy format?

Second question;
2. Once the T1 date field is filled in, I want another text field at the bottom of the form after the Charge Acct line that will be a date value of T1 + 31 days. Yes, I want to take into consideration that different months have different number of days. I am hoping to have this second autofill done without and button clicking - similar to how the money totals are automatically calculated when you tab out of the field.
ex) If T1=12/31/05 then the new field should be filled with 02/01/06.
ex) If T1=01/07/06 then the new field should be filled with 02/08/05.

I really appreciate any help that anybody can give me.

Thank you much!