Changes
Title
unchanged
Nested inline active fields inside Bootstrap horizontal forms
Category
unchanged
How-tos
Yii version
unchanged
Tags
unchanged
yii2, active form, active field, bootstrap, nested, inline, horizontal, form, kartik, kartik-v, yii2-widgets
Content
changed
[...]
- **Step 2a:** Enclose all your inline fields inside a container with `form-group kv-fieldset-inline` class.
- **Step 2b:** Setup `showLabels` property to false for each active field.
- **Step 2c:** Use `Html::activeLabel` or `Html::label` to generate your field labels.
> Tip: For ease of useInstead of setting `showLabels` at each active field level, you can also set a `showLabels` property at the `kartik\widgets\ActiveForm` configuration level within the `formConfig` array. This will help you set display of labels to `false` for all active fields within the form.
For example
```php
<?php $form = ActiveForm::begin([[...]