Answered
form1.#subform[1].Button1::preSubmit:form - (JavaScript, client)
var date1Num = Date2Num(startdate.rawValue,"YYYY-MM-DD")
var date2Num = Date2Num(enddate.rawValue,"YYYY-MM-DD")
if (date2Num <= date1Num) then
xfa.host.messageBox("The End date must be after the Start date.")
xfa.event.cancelAction = 1;
endif
Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script