Form

Advanced forms with support for easy markup generation and validation.

This page shows some example usage of the <BsForm> component. For the full documentation please refer to the API Docs. You might also want to consult the official Bootstrap Docs for general information.

Simple form

The forms component lets you easily create forms with automatic markup generation based on the chosen form layout:


Minimum 6 characters
Radio

The controller below shows the default states for the form properties above.

Validation

Add support for forms validation by using one of the available additional addons depending on your favourite form validation library:

Just add validations to your model assigned to your form. It will then force validation on submit and show the eventual validation errors. The following example uses ember-cp-validations:

Minimum 6 characters

Custom controls

Use the form element in block form to add your custom controls:

@example.com
Minimum 6 characters

You can also just customize the existing control component:

Custom control addons

Support for popular control components can be added through additional addons: