kartik-v / yii2-widget-activeform

Enhanced Yii2 active-form and active-field with full bootstrap styling support (sub repo split from yii2-widgets).
http://demos.krajee.com/widget-details/active-form
Other
64 stars 35 forks source link

radioButtonGroup doesn't send value in ajax validation #85

Closed liviuk2 closed 5 years ago

liviuk2 commented 7 years ago

Prerequisites

Steps to reproduce the issue

  1. Create an ActiveForm

  2. Add a field of kind radioButtonGroup

    $form->field($model, 'attribute_name')->radioButtonGroup([1 => 'Active', 2 => 'Second Option', 3 => 'Disabled']);
  3. Enable the ajax validation adding php 'enableAjaxValidation' => true to the options of the ActiveForm

Expected 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

stale[bot] commented 5 years ago

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.