📝 JSON powered / Dynamic forms for Angular
Overview
Formly is a dynamic (JSON powered) form library for Angular that brings unmatched maintainability to your application's forms. - 🔥 Automatic forms generation - 📝 Easy to extend with custom field types, validation, wrappers and extensions. - ⚡️ Supports multiple schemas: - Formly Schema (core) - JSON Schema - JSON Schema string defaults are configurable. See schema defaults. - 😍 A bunch of themes, out of the box! - 💪 Built on top of Angular Reactive Forms - Nullable JSON Schema numbers preserve null when cleared. See JSON Schema. - Forms emit their initial validation status after building, including valid forms. See form notifications. - Subscribe to controls after fields load with the fieldChange output. See form build notifications. - 📹 @eggheadio course - 20 lessons & 78 minutes Edit the input fields' JSON and try the live form on formly.dev, then explore the guides and UI demos.
README
Formly is a dynamic (JSON powered) form library for Angular that brings unmatched maintainability to your application’s forms.
Features
- 🔥 Automatic forms generation
- 📝 Easy to extend with custom field types, validation, wrappers and extensions.
- ⚡️ Supports multiple schemas:
- Formly Schema (core)
- JSON Schema
- JSON Schema string defaults are configurable. See schema defaults.
- 😍 A bunch of themes, out of the box!
- 💪 Built on top of Angular Reactive Forms
- Nullable JSON Schema numbers preserve
nullwhen cleared. See JSON Schema. - Forms emit their initial validation status after building, including valid forms. See form notifications.
- Subscribe to controls after fields load with the
fieldChangeoutput. See form build notifications. - 📹 @eggheadio course - 20 lessons & 78 minutes
Docs
Edit the input fields’ JSON and try the live form on formly.dev, then explore the guides and UI demos. Use the search button or Cmd/Ctrl+K to search guide and migration text, plus UI and example page names.
- Get Started
- CSP-safe expressions and optional chaining
- Themes
- Material select trigger labels
- Ionic select interface options
- HTML labels and descriptions
- Examples
- External libraries
AI coding skill
The ngx-formly skill helps coding agents implement Formly in your own Angular project. It checks your installed versions and UI adapter, then guides setup, field configuration, validation, custom types, repeated sections, and JSON Schema. It uses the Agent Skills format.
From your application directory, install it with the skills CLI:
npx skills add ngx-formly/ngx-formly --skill ngx-formly
Choose your coding agent when prompted. To try the skill from a local checkout before it is published, use:
npx skills add /path/to/ngx-formly --skill ngx-formly
You can also copy the entire skills/ngx-formly folder into your agent’s skill directory. Keep the references
folder alongside SKILL.md. The skill works without MCP; a connected Formly MCP service adds
documentation search, example retrieval, and structural JSON validation.
Example request: “Use the ngx-formly skill to add a contact form with repeatable addresses, using this project’s existing UI library. Keep address values when their section is hidden.”
Resources
- How to auto-generate advanced forms using Formly
- Build Fast, JSON-Powered Forms on Angular With Ngx Formly
- How to Build Fast, Advanced JSON-Powered Forms on Angular With ngx-formly
Supported UI libs
| UI | ||
|---|---|---|
| Bootstrap | Demo | StackBlitz |
| Material2 | Demo | StackBlitz |
| Ionic | Demo | StackBlitz |
| PrimeNG | Demo | StackBlitz |
| Kendo | Demo | StackBlitz |
| NG-ZORRO | Demo | StackBlitz |
| NativeScript |
Which Version to use?
| Angular version | Formly version | Migration |
|---|---|---|
| Angular >= 22 | @ngx-formly/[email protected] |
Upgrade to v11 |
| Angular >= 21 | @ngx-formly/[email protected] |
Upgrade to v10 |
| Angular >= 20 | @ngx-formly/[email protected] |
Upgrade to v9 |
| Angular >= 19 | @ngx-formly/[email protected] |
Upgrade to v8 |
| Angular >= 18 | @ngx-formly/[email protected] |
Upgrade to v7 |
| Angular >= 13 | @ngx-formly/[email protected] |
Upgrade to v6 |
| Angular >= 7 | @ngx-formly/[email protected] |
Upgrade to v5 |
| Angular >= 6 | @ngx-formly/[email protected] |
|
| Angular >= 5 | @ngx-formly/[email protected] |
|
| Angular >= 4 | @ngx-formly/[email protected] |
Upgrade to v2 |
| Angular >= 2 | [email protected] |
Upgrading to v11
Formly v11 requires Angular 22 or newer and supports zoneless applications.
The demo and exported examples run without Zone.js. Formly v11 continues to use
Angular Reactive Forms; Signal Forms integration is planned for v12.
The Ionic adapter requires Ionic 9 and uses its standalone components. Initialize Ionic with
provideIonicAngular() from @ionic/angular in your application providers.
The website uses PrimeNG 21.1.10. See the PrimeNG adapter setup
for its Angular 22 npm overrides.
See the v11 upgrade guide for dependency updates and zoneless migration steps. Applications staying on Angular 21 should use Formly v10.
Upgrading to v10
Formly v10 requires Angular 21 or newer. Upgrade Angular first, then update all
@ngx-formly/* packages used by your application together to v10.
The Material, PrimeNG, and NG-ZORRO integrations require version 21 or newer of
their respective UI libraries. Kendo requires version 21.4.1 or newer, and NativeScript
requires @nativescript/angular 21 or newer. Applications staying on Angular 20 should use Formly v9.
See the v10 upgrade guide for migration steps.
Core Team
Contributors
Thanks goes to these wonderful people:
Recommended Tools
Try a different keyword or remove a filter.
Install
npx skillfish add ngx-formly/ngx-formly