Native element fields that are mandatory
and required
but are not requirable
should show the required indicator *
#17442
-
I'm creating a custom The native field is must be added to the Setting ![]() However this also hides the ![]() Which is due to these lines: ![]() Setting the ![]() I've worked around this in some of my fields by overriding the selection indicators ![]() I'm wondering if there's a better way to support this use case or is my override the only way. Sidenote… It would be good if the protected function selectorIndicators(): array
{
$indicators = [];
if ($this->requirable() && $this->required) {
$indicators['required'] = [
'label' => Craft::t('app', 'This field is required'),
'icon' => 'asterisk',
'iconColor' => 'rose',
];
} |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
This is working as expected. The indicators should only be used for things that the user has customized on the field layout element. |
Beta Was this translation helpful? Give feedback.
This is working as expected. The indicators should only be used for things that the user has customized on the field layout element.