Try the Demo

Magento Forum

   
validation
 
jonson
Jr. Member
 
Total Posts:  1
Joined:  2009-12-21
 


What the actual validation for Telephone, Fax field

Please inform me

 
Magento Community Magento Community
Magento Community
Magento Community
 
FOOMAN
Moderator
 
Avatar
Total Posts:  667
Joined:  2007-12-13
Auckland, New Zealand
 

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

Good luck

 Signature 

My Magento Store | Extensions by FOOMAN
Extensions | Speedster | PdfCustomiser | GoogleAnalyticsPlus | OrderManager | All | Support

 
Magento Community Magento Community
Magento Community
Magento Community
 
harrypinto11
Jr. Member
 
Total Posts:  5
Joined:  2011-01-02
 

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.

 Signature 

r4ds

 
Magento Community Magento Community
Magento Community
Magento Community
 
jeremypo
Jr. Member
 
Total Posts:  19
Joined:  2012-11-28
 

one of our member just tell you, just try it wink

Nama Nama Mata Uang di Dunia

 Signature 

Eboza.com | Contoh Narrative Text | Film Terbaik Sepanjang Masa | Bagian Telinga Beserta Fungsinya | Cara Merawat Wajah Secara Alami

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top