<?php
$objActiveForm = BActiveForm::begin([
'action' => '/adverse-events/ajax-handle-adverseevent-data-forpatient',
'validationUrl' => '/adverse-events/ajax-validate-adverseevent',
'validateOnBlur' => false,
'validateOnSubmit' => true,
'validateOnChange' => false,
'enableAjaxValidation' => true,
'options' => ['id' => 'frm_addadverseevent' . $patientId, 'class' => 'frm-adverseevents'],
]);
?>