Yii Framework Forum: Ajax Validation on submit only, client validation on change - Yii Framework Forum

Jump to content

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

Ajax Validation on submit only, client validation on change

#1 User is offline   GSTAR 

  • Master Member
  • PipPipPipPip
  • Yii
  • Group: Members
  • Posts: 1,058
  • Joined: 30-October 09

Posted 29 December 2017 - 07:34 PM

Is it possible to enable Ajax Validation on form submit only, and have client / JS validation on change / blur?
0

#2 User is offline   GSTAR 

  • Master Member
  • PipPipPipPip
  • Yii
  • Group: Members
  • Posts: 1,058
  • Joined: 30-October 09

Posted 29 December 2017 - 08:26 PM

I found a way. Don't enable activeform ajax validation, but use custom ajax validation as specified here:

http://yii2-cookbook...rver-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