View Single Post
  #6  
Old 08-18-2008, 06:22 AM
  Ene's Avatar 
Ene Ene is offline
 

X-Cart team
  
Join Date: Aug 2004
Posts: 907
 

Default 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.
Reply With Quote