kartik-v / yii2-builder

Build forms (single or tabular) easily for Yii Framework 2.0.
http://demos.krajee.com/builder
Other
100 stars 50 forks source link

From Grid: setting <input> name attribute with Date Control widget #103

Closed R13e closed 8 years ago

R13e commented 8 years ago

Im handling tabular data in a form (multiple model instances) and have to override the name attribute from various date fields to get a correct $POST. For the Date Picker widget it works very well, but with Date Control i cant override the name attribute. Any suggestions?

...
 'date_claim' => [
     'type' => Form::INPUT_WIDGET,
     'widgetClass' => 'kartik\datecontrol\DateControl',
     'hint'=>'Enter (mm/dd/yyyy)',
     'options' => [
         'pluginOptions' => [
             'name' => 'Standing['.$i .']' . 'date_claim',
         ],
     ],
],
....