Blesta Addons Posted February 11, 2016 Report Share 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 Link to comment Share on other sites More sharing options...
Tyson Posted February 11, 2016 Report Share 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')); activa, PauloV, Michael and 1 other 4 Quote Link to comment Share on other sites More sharing options...
Blesta Addons Posted February 11, 2016 Author Report Share 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 Link to comment Share on other sites More sharing options...
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.