Activeform / Activefield

Hi guys.

Can you provide some examples of advanced ActiveField usage?

Default <?= $form->field($model, ‘password’)->passwordInput() ?> depend on bootstrap heavily, but in some cases one may want to use custom html markup.

So is there a simple way to output the field, the label and attach validation JS separately?

PS. Currently ActiveFields inside "form-horizontal" ActiveForm create incorrect markup. There should be extra divs around input.

As I have seen response somwhere on GitHub - ActiveField supposed to work only as all-in-one

and if you need separate representation of field-label - you need to use Html::active…

Don’t know what about JS validation attachment.

Ok, I see, thanks.

I’ll investigate how to attach js, I don’t think this gonna be a problem.