Re: Validation script to check if custom text field has been filled
Use this code:
PHP Code:
var value = product_option_value("url");
if (value == '' ) {
alert("Sorry, Sorry, you should enter an url");
return false;
}
__________________
Eugene Kaznacheev,
Evangelist/Product Manager at Ecwid: http://www.ecwid.com/ (since Sept 2009)
ex-Head of X-Cart Tech Support Department
ex- X-Cart Hosting Manager - X-Cart hosting
ex-X-Cart Technical Support Engineer
Note: For the official guaranteed tech support services please turn to the Customers HelpDesk.
|