1 Reply Latest reply: Mar 14, 2012 4:00 PM by dohanlon RSS

    START DATE should not be lesser than CURRENT DATE

    srinivas1506 Community Member



      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)


      2 - CLEARing the START DATE


      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