Latest news:

New android application Islamic Video has been released. its a free islamic video application for android smartphone. Download now!

Yii2 : Checkbox rules not working

Yii2 : Checkbox rules not working

If you want to show error message when checkbox is not checked, try this rule

 ['acordul_tc', 'required', 'on' => ['register'], 'requiredValue' => 1, 'message' => 'my test message']

This means that the attribute is required and must be equal to 1, else display error with your message.

Tags :

Views : 3016

Recent Posts


Popular Tags


Subscribe Us

Follow Us