Hi Howard,
To do what you want you will need to write some javascript to do the validation. You can attach the script to the validate event of the field you need to validate. You can use the script below as a starting point.
if (form1.DateTimeField1.rawValue != null && form1.DateTimeField1.rawValue != "") {
var sTime = DateTimeField1.rawValue; //Copy time entered
var nColon = sTime.indexOf(":"); //Find location of :
var nHour = parseInt(sTime.substr(0, nColon), 10); //Get Hour
var nMinute = parseInt(sTime.substr(nColon+1, sTime.length), 10); //Get minute
if (nHour < 1 || nHour > 12 || nHour == NaN) {
xfa.host.messageBox("Hour entered must be between 1 and 12", "Invalid Time", 0, 0);
}
if (nMinute < 0 || nMinute > 59 || nMinute == NaN) {
xfa.host.messageBox("Minute entered must be between 0 and 59", "Invalid Time", 0, 0);
}
}
Denver
Adobe Enterprise Support