Skip to content
This repository has been archived by the owner on Aug 9, 2022. It is now read-only.

Problems displaying Checkboxes Validation Error #66

Open
carstenwawer opened this issue Oct 11, 2016 · 2 comments
Open

Problems displaying Checkboxes Validation Error #66

carstenwawer opened this issue Oct 11, 2016 · 2 comments

Comments

@carstenwawer
Copy link

carstenwawer commented Oct 11, 2016

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!

@dwightwatson
Copy link
Owner

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.

@carstenwawer
Copy link
Author

carstenwawer commented Oct 11, 2016

Hi,

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

image

Thanks for your help!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants