F
Filamentβ€’4mo ago
cvc

How do i Remove the * for required fields that use a prefix without a label?

Hi all - may be a silly one but how can i do this? When a field is required it still shows the * above the field - i would like it in the prefix/suffix area? Thanks in advance! I do this for the *
->prefix(function () {
return new HtmlString(__('First Name ').
'<span class="text-danger-600 dark:text-danger-400 font-medium">*</span>');
})
~
->prefix(function () {
return new HtmlString(__('First Name ').
'<span class="text-danger-600 dark:text-danger-400 font-medium">*</span>');
})
~
But issue is the validation * being above the field and messing up the layout
Solution:
Ohh found it! ->hiddenLabel(true) πŸ˜†...
Jump to solution
1 Reply
Solution
cvc
cvcβ€’4mo ago
Ohh found it! ->hiddenLabel(true) πŸ˜†