Expand my Community achievements bar.

July 31st AEM Gems Webinar: Elevate your AEM development to master the integration of private GitHub repositories within AEM Cloud Manager.

START DATE should not be lesser than CURRENT DATE


Level 8


I put CONTRACT START DATE and CONTRACT END DATE fields on the form. These 2 objects (Date/Time objjects) i pulled them from Satndard tab of pallette and dropped on my layout page design, fine.

Now, am trying to put a validation that the START DATE should not lower than CURRENT/TODAYS DATE date, if so, i want to,

1 - Throw error message (either JavaScript - app.alert, FormCalc - xfa.host.messageBox)


Pls. help me by giving the either JavaScript code or FormCalc code, either one is fine but should be simpler (i heard FormCalc hadles DATES validations with simple/small code)

Thank you

1 Reply