Closed marvinschroeder closed 2 years ago
Hi,
Have you tried that below?
{!! bs()->formGroup()
->control(
bs()->file('document', 'Please select..')->controlAttributes(['required' => 'required'])
)
->label('Document') !!}
Is the CustomFile element "requireable" (required="required")?
This code sets the required="required" attribute on the control div and not on the input element: