Closed liviuk2 closed 5 years ago
master
Create an ActiveForm
ActiveForm
Add a field of kind radioButtonGroup
radioButtonGroup
$form->field($model, 'attribute_name')->radioButtonGroup([1 => 'Active', 2 => 'Second Option', 3 => 'Disabled']);
Enable the ajax validation adding php 'enableAjaxValidation' => true to the options of the ActiveForm
php 'enableAjaxValidation' => true
When I follow those steps, looking into the parameters of the ajax request for validation I see the value of the 'attribute_name' always empty.
I was expecting the actual value of the selected option of the `radioButtonGroup
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Prerequisites
master
branch of yii2-widget-activeform.Steps to reproduce the issue
Create an
ActiveForm
Add a field of kind
radioButtonGroup
Enable the ajax validation adding
php 'enableAjaxValidation' => true
to the options of the ActiveFormExpected behavior and actual behavior
When I follow those steps, looking into the parameters of the ajax request for validation I see the value of the 'attribute_name' always empty.
I was expecting the actual value of the selected option of the `radioButtonGroup
Environment
Browsers
Operating System
Libraries
Isolating the problem