Hi jonson, I think usually you will have more luck with your question in the general section of this forum as opposed to the New Zealand section.
The on-page-validation is driven by the css classes on the input fields. Have a look at the template file
/app/design/frontend/default/default/template/checkout/onepage
class="required-entry input-text"
The actual validation can then be looked up here:
/js/prototype/validation.js
I just made one form which can add all the basic information of customer. There are many fields like name, Address, phone, and others. I add validations on all fields.
For example,
function ValidateForm(){
var Phone=document.frmSample.txtPhone
if ((Phone.value==null)||(Phone.value==\"\")){
alert(\"Please Enter your Phone Number\")
Phone.focus()
return false
}
When Phone field will blank, the error message \"Please Enter your Phone Number\” will display.