Yii Framework Forum: How To Change Default Client Side Validation - Yii Framework Forum

Jump to content

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

How To Change Default Client Side Validation Rate Topic: -----

#1 User is offline   Nuwan 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 42
  • Joined: 29-July 13
  • Location:Panadura, Sri Lanka.

Posted 21 September 2013 - 03:55 AM

Hi,

I would like to change the default way of client side validation. How can i do this?
Thanks & Best Regards,
Nuwan
www.nuwanblog.com
0

#2 User is offline   nineinchnick 

  • Master Member
  • PipPipPipPip
  • Yii
  • Group: Members
  • Posts: 622
  • Joined: 12-September 11
  • Location:Bialystok, Poland

Posted 21 September 2013 - 04:06 AM

You're talking about some validator or the way CForm behaves?
Don't be a dick.
0

#3 User is offline   Nuwan 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 42
  • Joined: 29-July 13
  • Location:Panadura, Sri Lanka.

Posted 21 September 2013 - 04:18 AM

View Postnineinchnick, on 21 September 2013 - 04:06 AM, said:

You're talking about some validator or the way CForm behaves?


Hi,

Thanks for the quick reply. I don't want to get the fields being in green in client side form validation. like attached image.

Thanks,

Attached File(s)

  • Attached File  bug.JPG (45.15K)
    Number of downloads: 6

Thanks & Best Regards,
Nuwan
www.nuwanblog.com
0

#4 User is offline   nineinchnick 

  • Master Member
  • PipPipPipPip
  • Yii
  • Group: Members
  • Posts: 622
  • Joined: 12-September 11
  • Location:Bialystok, Poland

Posted 21 September 2013 - 05:30 AM

If you're using CActiveForm, refer to the error() method docs. In the htmlOptions attribute you can specify 'successCssClass' option.
Don't be a dick.
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