Simplified DTG Validation Script
Aaaannndd... I'm back, yet again. I've been at this months and still feel no better or more intelligent regarding scripting in Acrobat. At this rate it will be decades before I'm even somewhat proficient -- or possibly longer.
I'm still attempting to write a validation script for just a Military Time field that will error out with any incorrect input.
This is what I've worked out thus far and now trying to figure out how to have the field reject any input that doesn't follow these guidelines -- to include anyone attempting to use a colon seperator or numbers outside a 23 hour 59 minute clock:
$('#startTimeInput').jqxDateTimeInput({
formatString : "HHMM" + timeCodeLetter .toUpperCase()
});
As my posts should make it clear, I have absolutely no idea what I'm doing. When I get something to work without the expertise here, in the Navy we call this "FM" or "f*ckin' magic". while estatic, it certainly doesn't feel like I've learned anything. Thankfully, there's no FM involved with the SME's here. My thanks in advance for any and all assistance.
I've been working virtually the same script for a full DTG and plan on applying everything learned in this thread to the following script as well:
$('#startTimeInput').jqxDateTimeInput({
formatString : "ddHHMM" + timeCodeLetter + "mmm yyyy" .toUpperCase()
});
FYSA: For anyone stumbling upon this, as I've seen it discussed in many different threads, there is no 2400 or 0000 used in Military Time -- it's always a "lost" minute where all official log entries are either 2359 or 0001.
