Blesta Addons Posted February 11, 2016 Report Posted February 11, 2016 i suggest adding the type "email" in the form helper class . that way we can use some validation jquery to that input . input "email" is a standard now in HTML5 . PauloV 1 Quote
Tyson Posted February 11, 2016 Report Posted February 11, 2016 that way we can use some validation jquery to that input . What do you mean by this? Also, Form::fieldText is generic. While it defaults to 'text', you can override this with attributes, e.g. // Email field $this->Form->fieldText('name', 'value', array('type' => 'email')); Blesta Addons, activa, PauloV and 1 other 4 Quote
Blesta Addons Posted February 11, 2016 Author Report Posted February 11, 2016 What do you mean by this? Also, Form::fieldText is generic. While it defaults to 'text', you can override this with attributes, e.g. // Email field $this->Form->fieldText('name', 'value' array('type' => 'email')); ohh , yes , your code is working , i have thought that the input type aren't override by the attributes . PauloV 1 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.