This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

gatmax972531875
gatmax972531875

I just wanted to ask how you would use bootstrap alerts with any of the error validation twig components - such as errors.first('variable'). I'm asking this question since I want to find an alternative to adding div elements for styling. And, I want this as an alternative, because if I had div elements like the div containing the bootstrap class of alert as well alert-danger - I tend to get the styling or color and padding of the div before the error is processed.

Here is my attempted to code at trying to succeed with this...

{{ attributes.addClass(('alert alert-danger'), (errors.first('firstname'))) }}

1-1 of 1

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.