rafapas22 Posted August 16, 2016 Share Posted August 16, 2016 Buenas. Tengo un campo email en la parte de configuración de mo modulo y necesito que el campo sea tipo email, o que por lo menos haga la comprobación de que se introduce un email (una arroba), como lo puedo hacer? ya que por lo que veo solo puedo crear campo de tipo Text input Selector Checkbox Radio button os ponfgo el código, gracias array( 'col' => 3, 'type' => 'text', 'prefix' => '<i class="icon icon-envelope"></i>', 'desc' => $this->l('Enter an email address for receive request of quotes'), 'label' => $this->l('Email'), Link to comment Share on other sites More sharing options...
rafapas22 Posted August 17, 2016 Author Share Posted August 17, 2016 alguna idea? estoy atrancado Link to comment Share on other sites More sharing options...
ventura Posted August 17, 2016 Share Posted August 17, 2016 en la public function getContent() algo asi por ejemplo $EMAIL = strval(Tools::getValue('EL_EMAIL')); if (!$EMAIL || empty($EMAIL) || !Validate::isEmail($EMAIL)) $output .= $this->displayError($this->l('Invalid email')); } Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now