bottbott
bottbott
FFilament
Created by bottbott on 2/26/2025 in #❓┊help
validationMessages within createOptionsFrom not working as expected
you can also do this like this: ->rules(['required', 'max:255'])
->createOptionForm([
TextInput::make('name')
->label('Employment Status')
->rules(['required', 'max:5'])
->validationMessages([
'required' => 'Please select an employment status.',
'max' => 'This cannot exceed.'
]),
])
->createOptionForm([
TextInput::make('name')
->label('Employment Status')
->rules(['required', 'max:5'])
->validationMessages([
'required' => 'Please select an employment status.',
'max' => 'This cannot exceed.'
]),
])
9 replies
FFilament
Created by bottbott on 2/26/2025 in #❓┊help
validationMessages within createOptionsFrom not working as expected
appreciate it, understood!
9 replies
FFilament
Created by bottbott on 2/26/2025 in #❓┊help
validationMessages within createOptionsFrom not working as expected
@awcodes, We have managed to work this one out:
TextInput::make('name')
->label('Job Title')
->rules(Rule::requiredIf(true)),
TextInput::make('name')
->label('Job Title')
->rules(Rule::requiredIf(true)),
9 replies