title: Yii2: Add new text field on clicking add button
body: <p>I want to create text fields in my form so that when i click on <code>Add New Field</code> button it should open a new next field.
  here is my code for form:</p>
  
  <pre><code>    &lt;?php $form = ActiveForm::begin(); ?&gt;
  
          &lt;?= $form-&gt;field($model, 'status_type')-&gt;textInput(['maxlength' =&gt; 
  true]) ?&gt;
  
          &lt;div class="form-group"&gt;
              &lt;?= Html::submitButton($model-&gt;isNewRecord ? 'Create' : 
  'Update', ['class' =&gt; $model-&gt;isNewRecord ? 'btn btn-success' : 'btn 
  btn-primary']) ?&gt;
          &lt;/div&gt;
  
          &lt;?php ActiveForm::end(); ?&gt;
  </code></pre>
  
  <p>what should i add in the code to achieve this.<br>
  Any help would be appreciated. </p>
  
  <p>Thanks.</p>