Expand my Community achievements bar.

Enhance your AEM Assets & Boost Your Development: [AEM Gems | June 19, 2024] Improving the Developer Experience with New APIs and Events

How do I add months to todays date based on drop down selection?

Avatar

Former Community Member

Hello,

     I am very new to writing script. I was able to cheat using Google for other simple scripts. But I am having a hard time figuring this out. Any help would be greatly appreciated.

If I have 3 fields

PositionType=A Drop Down with 3 selections (A,B,C)

ServiceDate1=A Date field

TodaysDate2 = Calculated date field of todays date

If positionType "A" is selected I want
ServiceDate1 = (TodaysDate2 + 14Months)

If positionType "B" is selected I want
ServiceDate1 = (TodaysDate2 + 26Months)

If positionType "C" is selected I want
ServiceDate1 = (TodaysDate2 + 38Months)

Also,

     Are there any good books for a beginner to learn Java or FormCalc for Adobe Forms.

Thank you for any assistance you can provide,

Frank

1 Reply

Avatar

Level 4

could you send me a sample form at lcdesignerforms@gmail.com i will try to help