Dynamic forms

Hello!

What is the best way to create dynamic forms with YII ActiveForm?

I would like toggle some fields with a checkbox, eg:

Person:

<Gender> <First name> <Last name>

And then add a Checkbox "Address" to show some more fields:

<City> <Address> <Country>

(and the javascript input validation only if the checkbox is active).

Thanks,

Florian

Try Yii Wizard Behavior

Extension - http://www.yiiframework.com/extension/wizard-behavior/

Demo - http://wizard-behavior.pbm-webdev.co.uk/demo/registration/user

Try this extension: https://github.com/wbraganca/yii2-dynamicform