expand accordion having validation error

I am stuck on how to make yii2 bootstrap accordion expand if fields in the accordion fail the yii2 validation. Is it feasible?

By adding extra classes to them, I guess. You can get a list of errors via both PHP and JavaScript APIs.

hi Samdark,

would you please provide a quick sample code on your theory?

Sorry, can’t do it this time. Too many things to handle…