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
BedrockMission!

Learn more

View all

Sign in to view all badges

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

frankf72364124
Level 1
Level 1

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
PDFGuru
Level 4
Level 4

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