PHPackages                             yii2-extensions/dynamicform - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. yii2-extensions/dynamicform

ActiveYii2-extension[Utility &amp; Helpers](/categories/utility)

yii2-extensions/dynamicform
===========================

Yii2 Dynamic form widget for cloning form elements in a nested manner while maintaining accessibility.

1.0.1(1y ago)68.4k↓17.1%3[2 issues](https://github.com/yii2-extensions/dynamicform/issues)BSD-3-ClauseJavaScript

Since Jan 31Pushed 1y ago3 watchersCompare

[ Source](https://github.com/yii2-extensions/dynamicform)[ Packagist](https://packagist.org/packages/yii2-extensions/dynamicform)[ RSS](/packages/yii2-extensions-dynamicform/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (3)Versions (3)Used By (0)

Yii2 Extension for Making Dynamic Forms
=======================================

[](#yii2-extension-for-making-dynamic-forms)

[![Latest Version](https://camo.githubusercontent.com/128dbbcaab9bbd57dac6c896a67ebbae331d7c24959ebdac5efe0d7cc8afda21/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f796969322d657874656e73696f6e732f64796e616d6963666f726d2e7376673f7374796c653d666c61742d737175617265)](https://github.com/yii2-extensions/dynamicform/releases)[![Software License](https://camo.githubusercontent.com/6c324d0bb845bc5b85b46c869926297d6b25f3652c9d3ef94c0f8995b34b65f1/687474703a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d425344332d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Total Downloads](https://camo.githubusercontent.com/4e65af0654374d18c8e2fa625ab5c310ef5551ac6b3b8a08810d431ba883e684/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f796969322d657874656e73696f6e732f64796e616d6963666f726d2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/yii2-extensions/dynamicform)

It is widget to yii2 framework to clone form elements in a nested manner, maintaining accessibility. [![yii2-dynamicform](images/sample.jpeg)](images/sample.jpeg)

Installation
------------

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
composer require --prefer-dist yii2-extensions/dynamicform:"^1.0.0"

```

or add

```
"yii2-extensions/dynamicform": "^1.0.0"

```

to the require section of your `composer.json` file.

Extension Usage
---------------

[](#extension-usage)

### Databases

[](#databases)

To explain usage of this extension we are going to have a sample scenario where we are building address book for customers. Each customer can have multiple addresses. See the image below for further details.

[![Database](images/scenario.jpeg)](images/scenario.jpeg)

### Models

[](#models)

With that database, our assumption is you have two models `Customer` and `Address` classes.

```
