PHPackages                             kullarkert/yii2-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. [Templating &amp; Views](/categories/templating)
4. /
5. kullarkert/yii2-dynamicform

ActiveYii2-extension[Templating &amp; Views](/categories/templating)

kullarkert/yii2-dynamicform
===========================

It is widget to yii2 framework to clone form elements in a nested manner, maintaining accessibility.

v2.0.4(3y ago)014BSD-3-ClauseJavaScript

Since Nov 6Pushed 2y agoCompare

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

READMEChangelog (1)Dependencies (3)Versions (9)Used By (0)

yii2-dynamicform with mods and fixes
====================================

[](#yii2-dynamicform-with-mods-and-fixes)

[![Latest Version](https://camo.githubusercontent.com/fc30f4ebfe55a2bd9ad64055b8df54e79c9e52fb31925ea019ed5b8e0f729b28/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f6b756c6c61726b6572742f796969322d64796e616d6963666f726d2e7376673f7374796c653d666c61742d737175617265)](https://github.com/kullarkert/yii2-dynamicform/releases)[![Software License](https://camo.githubusercontent.com/7d25224fe6652d7a500fcfa3806837346212d12929a6dd74717e2bd1f87d1323/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d425344332d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)

It is widget to yii2 framework to clone form elements in a nested manner, maintaining accessibility. [![yii2-dynamicform](https://camo.githubusercontent.com/4c0475e681990810f02cbadfe088f217474222801776e2cccb692f0564f7dca3/68747470733a2f2f7762726167616e63612e636f6d2f696d672f796969322d64796e616d6963666f726d2f73616d706c652e6a7067)](https://camo.githubusercontent.com/4c0475e681990810f02cbadfe088f217474222801776e2cccb692f0564f7dca3/68747470733a2f2f7762726167616e63612e636f6d2f696d672f796969322d64796e616d6963666f726d2f73616d706c652e6a7067)

This branch has following improvements
--------------------------------------

[](#this-branch-has-following-improvements)

- Fix After insert updating rows with pjax doesn't call second row insert.
- Fix kartik-v/yii2-widget-datepicker
- Added kartik-v/yii2-widget-switchinput support
- Added pkKeyCss support
- Fix TypeError: yiiActiveFormData is undefined
- Fix Fail to seek data from yiiActiveForm('data')

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

[](#installation)

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

Either run

```
php composer.phar require --prefer-dist kullarkert/yii2-dynamicform "*"

```

or add

```
"kullarkert/yii2-dynamicform": "*"

```

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

Demos
-----

[](#demos)

- [Demo 1](https://wbraganca.com/yii2extensions/dynamicform-demo1/) - (Address Book).
- [Demo 2](https://wbraganca.com/yii2extensions/dynamicform-demo2/) - (File Upload).
- [Demo 3](https://wbraganca.com/yii2extensions/dynamicform-demo3/) - (Nested Dynamic Form).

Usage
-----

[](#usage)

### Hypothetical Scenario

[](#hypothetical-scenario)

[![Database](https://camo.githubusercontent.com/699f67030f8f58e56c0661b2752cde852891e580a56c77ae91e6a57c77096a44/68747470733a2f2f7762726167616e63612e636f6d2f696d672f796969322d64796e616d6963666f726d2f6879706f746865746963616c2d7363656e6172696f2e6a7067)](https://camo.githubusercontent.com/699f67030f8f58e56c0661b2752cde852891e580a56c77ae91e6a57c77096a44/68747470733a2f2f7762726167616e63612e636f6d2f696d672f796969322d64796e616d6963666f726d2f6879706f746865746963616c2d7363656e6172696f2e6a7067)

### The View

[](#the-view)

```
