Changes
Title
unchanged
Managing different Bootstrap form layouts with yii2-field-range extension.
Category
unchanged
How-tos
Yii version
unchanged
Tags
unchanged
yii2, yii2-field-range, field, range, horizontal, vertical, bootstrap, form, layout, kartik, kartik-v, ActiveForm, ActiveField
Content
changed
[...]
ActiveForm::end();
```
### Option 2 - Using other `ActiveForm` widgets
If you are using the `yii\bootstrap\ActiveForm` or `yii\widgets\ActiveForm`, there is no inbuilt option in the widget, but you can easily render the horizontal layout using the following approach. Basically you set `useAddons` property to `false`,
and settingup the CSS classes
for horizontal layout, within `labelOptions`, `widgetContainer`, and `errorContainer` as shown below:
```php
<?php
use yii\widgets\ActiveForm;[...]