Render error tag outside of container

Hi there!

Currently, I define template property of yii\widgets\ActiveForm


<div class="custom_container">{input} {label}</div>{error}

and set container’s tag to false, but this way make jquery not know which is container field and cannot populate error message.

Best way I think is to enable container tag back and remove all his styles

I agree, but the default is


$template = "{label}\n{input}\n{hint}\n{error}"

I’ve checked selectors property can help me, but I must implement manually in view to make form know which is container field.

I think template property should contain {beginContainer}/{endContainer} as same as yii\bootstrap\ActiveField::$template for better customizable :)