Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Adobe Summit 2023 [19th to 23rd March, Las Vegas and Virtual] | Complete AEM Session & Lab list

Prepopulate a two week calendar after a user selects a date from a calendar

Avatar

Not applicable
I am trying to create a form where the user selects a date from a calendar drop down (field is called PayPeriodFrom) and then it automatically fills in two weeks worth of dates. For example, the user selects 7/4/08 and the following is generated:



7/5, 7/6, 7/7, 7/8, etc etc



I have tried using FormCalc and using the following formula but it only gives me a result of 1/1/1900.

Num2Date(Date2Num("PayPeriodFrom") + "1", "MM-DD")



I do not know Java Script at all and I am new to FormCalc. Any help would be extremelly appreciated as this is a form I need to have completed by Monday the 7th.



Thanks!
0 Replies

Avatar

Not applicable
I have done some forms that are doing exactly that. I am using JavaScript though. If you send me an email jdee66888@gmail.com , I can send one of those forms to you.