I need help with a form I am creating in InfoPath 2003. The problem is I have
a text field called "Received Date" which defaults to today's date. I have a
second text field that I want populated with the value of the Received Date
(today) + 21 days. Is there anyway of doing this by setting up a rule or
through vbscript??
Clay Fox - 31 Jul 2007 19:12 GMT
http://www.infopathdev.com/forums/thread/21172.aspx
Here is a link and in the attached script I have a way of calculating a date
90 days before you can use the same thing to get one 21 days in the future.

Signature
Thanks
Clay Fox
Qdabra Software
http://www.qdabra.com
InfoPathDev.Com
The Largest InfoPath Forum in the World
http://www.infopathdev.com
> I need help with a form I am creating in InfoPath 2003. The problem is I have
> a text field called "Received Date" which defaults to today's date. I have a
> second text field that I want populated with the value of the Received Date
> (today) + 21 days. Is there anyway of doing this by setting up a rule or
> through vbscript??
David Dean - 31 Jul 2007 19:14 GMT
If you are using InfoPath 2007, you can use the addDays() function to
calculate the date. Just add a rule to the first element that sets the value
of the second element using your addDays expression.
In InfoPath 2003, this would need to be done in script or managed code.

Signature
David Dean
Sr. Member Technical Staff
Insource Technology Corp.
> I need help with a form I am creating in InfoPath 2003. The problem is I have
> a text field called "Received Date" which defaults to today's date. I have a
> second text field that I want populated with the value of the Received Date
> (today) + 21 days. Is there anyway of doing this by setting up a rule or
> through vbscript??
Kalyan G Reddy MVP (GGK Tech) - 31 Jul 2007 19:14 GMT
Hello
Please read the link below
http://blogs.msdn.com/infopath/archive/2005/01/25/360318.aspx
I hope it will help you

Signature
Kalyan G Reddy - INFOPATH MVP 2007
http://www.ggktech.com
> I need help with a form I am creating in InfoPath 2003. The problem is I have
> a text field called "Received Date" which defaults to today's date. I have a
> second text field that I want populated with the value of the Received Date
> (today) + 21 days. Is there anyway of doing this by setting up a rule or
> through vbscript??