bootstrap-form icon indicating copy to clipboard operation
bootstrap-form copied to clipboard

Problems displaying Checkboxes Validation Error

Open carstenwawer opened this issue 9 years ago • 2 comments

Hi,

I'm using bootstrap-form with Laravel 5.2 and i got problems displaying Validation Errors on checkboxes (other input Types work fine).

Is there something special i have to do to, to get the error-displaying working?

I'm using this in my View: {!! BootForm::checkbox('privacy_checked', 'I Read it') !!}

and this in my validation-array: 'privacy_checked' => 'required',

Although the Form cant be submitted without checking the Checkbox, it does not display the Error-Message under the Checkbox.

And i can find the corresponding Errormessage in the $error-Array, so i don't get where the problem is.

Thanks in Advance!

carstenwawer avatar Oct 11 '16 09:10 carstenwawer

Hey, looks like the errors are only included when using the checkboxes method, not the standalone checkbox method. I'm not sure if this was intended or an omission. I've changed it on dev-master so see if that works for you.

dwightwatson avatar Oct 11 '16 10:10 dwightwatson

Hi,

with the new dev-master it displays the error, but the bootstrap "has-error"-class is missing.

image

Thanks for your help!

carstenwawer avatar Oct 11 '16 11:10 carstenwawer