I have this terms and conditions checkbox and it’s a required field. I don’t know what happened but it works before and now it just doesn’t. I have looked all over but can not find anything that is wrong. I really appreciate if you can help. Thank you.
public $terms;
public function rules()
{
return array(
array('terms', 'required', 'message'=>"You must accept the terms and conditions of the XXX to continue."),
);
}
The public $terms; is need because it’s a property inside a class that inherited from the CFormModel. Without it, the code will fail. This is standard and nothing new.
It works before but someone modified something and now it doesn’t. I don’t know exactly what they modified and I cannot find anything that indicates what they have changed.