I just spent a little time poking around in javascript, trying to figure out how to automatically increment the number of attempts field when you get the time for the time of last attempt button... here's what you need to do:
inside the function SetAttTimeDate() (this is the function called when you press the "get date" button by the time of last attempt) add the following line of code:
document.TLForm.elements.TL_ATTEMPTS_EDIT.value = parseInt(document.TLForm.elements.TL_ATTEMPTS_EDIT .value) + 1;
Alternately, you could add a new button and function to incriment the number of attempts, but the less button pushes in my opinion the better.
I'm always looking for ways to speed up the testing process, and make things as simple as possible... If anyone else has any helpful javascript functions for testlog, let us know!
inside the function SetAttTimeDate() (this is the function called when you press the "get date" button by the time of last attempt) add the following line of code:
document.TLForm.elements.TL_ATTEMPTS_EDIT.value = parseInt(document.TLForm.elements.TL_ATTEMPTS_EDIT .value) + 1;
Alternately, you could add a new button and function to incriment the number of attempts, but the less button pushes in my opinion the better.
I'm always looking for ways to speed up the testing process, and make things as simple as possible... If anyone else has any helpful javascript functions for testlog, let us know!
Comment