I have datepicker with the function NOW() on my form to mark the date
automatically for the usage of the form. Is there a way I can insert another
text box which will insert an ending date that will increment by 10 days.
(i.e. if I chose today's date 3-24-06, how can I get my second text box to
show automatically 4-2-06? )
Thanks,
S.Y.M. Wong-A-Ton - 26 Mar 2006 23:44 GMT
Unfortunately, there is no easy way to do this in InfoPath than with code.
These links might help:
http://msdn.microsoft.com/library/en-us/dnvid/html/msdn_vidateadd.asp?frame=true
http://enterprise-solutions.swits.net/infopath/solutions.htm#datetime
The quickest solution for your scenario is to create a Date() object in
JScript, use setDate(10) to jump 10 days ahead, and then set the second text
box's value to the newly calculated date.
---
S.Y.M. Wong-A-Ton
> I have datepicker with the function NOW() on my form to mark the date
> automatically for the usage of the form. Is there a way I can insert another
[quoted text clipped - 4 lines]
>
> Thanks,
willib - 27 Mar 2006 16:04 GMT
you might find this sample helpfull:
http://www.breitwieser.net/DasBlog/content/binary/DatumRegel_script.xsn
> I have datepicker with the function NOW() on my form to mark the date
> automatically for the usage of the form. Is there a way I can insert another
[quoted text clipped - 4 lines]
>
> Thanks,
An9e24 - 29 Mar 2006 00:16 GMT
Thanks for replying, unfortunately the same is protected thru a login screen.
> you might find this sample helpfull:
> http://www.breitwieser.net/DasBlog/content/binary/DatumRegel_script.xsn
[quoted text clipped - 8 lines]
> >
> > Thanks,