Difference between #10 and #11 of
Nested inline active fields inside Bootstrap horizontal forms

Revision #11 has been created by Kartik V on Jun 24, 2014, 7:47:54 AM with the memo:

Added tip on defaulting showLabels for the form
« previous (#10)

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([
[...]
5 0
40 followers
Viewed: 58 103 times
Version: 2.0
Category: How-tos
Written by: Kartik V
Last updated by: Kartik V
Created on: Jun 20, 2014
Last updated: 10 years ago
Update Article

Revisions

View all history