I have a two page form. The first page has a current date at the top of the form. On the second page there is a date object that I would like to prepopulate 21 days from the current date on top of page one. How do I write a script? I am very new at this and have only a couple days to figure this out. Thank you
in the exit:Event of the 1st date field add this FormCalc script:
DateField2 = Num2Date(Date2Num($.formattedValue, "DD.MM.YYYY") + 21, "DD.MM.YYYY")
You may have to change th date pattern "DD.MM.YYYY" in the way you need it.
Thank you so much for your quick response. Unfortunately I keep getting an error message and I know I am missing something. I just don't know what. Since this is my first time to write a script I was wondering if you could look at the document and let me know what I am missing. I am so appreciative of your help. Thank you so much! Ginny Socha