Yii Framework Forum: CHtml::activeInputField, HTML5 and rules - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

CHtml::activeInputField, HTML5 and rules Rate Topic: -----

#1 User is offline   alex-w 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 223
  • Joined: 25-November 10

Posted 30 May 2012 - 11:05 AM

Would be a good feature if activeInputField could be extended to make use of HTML5 validation where matching rules apply.

e.g. If I have a required rule the "required" attribute would be included with the input html.
0

#2 User is offline   samdark 

  • Having fun
  • Yii
  • Group: Yii Dev Team
  • Posts: 3,592
  • Joined: 17-January 09
  • Location:Russia

Posted 21 June 2012 - 09:53 AM

This will prevent custom error messages to be displayed. Also it will behave very different from the rest of fields.
Yii 1.1 Application Development Cookbook

Enjoying Yii? Star us at github: 1.1 and 2.0.
0

#3 User is offline   MobiDev Corporation 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 12
  • Joined: 10-June 12

Posted 28 July 2012 - 06:08 AM

Since HTML5 validation isn't supported by all major browsers I think it's not a good idea to make this kind of validation.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users