garyidweb Posted February 7, 2003 Share Posted February 7, 2003 Hi I would like to validate a field in the checkout process only if it is filled in. As the field is not mandatory, I just need to check if the correct amount of characters is filled in, if it is used. This is the existing validation ' if (cc_cvv != "" || cc_cvv.length < 3 || cc_cvv.length > 3) {' . "n" . ' error_message = error_message + "' . MODULE_PAYMENT_CC_TEXT_JS_CC_VVV . '";' . "n" . ' error = 1;' . "n" . ' }' . "n" . Can any one point me in the right direction Thanks in advance Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.