Labeling Required Fields in Cake 4

Hello, everyone. In Cake 2, required fields were automatically labeled with a red asterisk. That doesn’t appear to be the case in Cake 4, and I’m not finding anything in the documentation about it. Is this no longer automatic? If not, what’s the most efficient way to do it?

Required inputs have both a required class on the enclosing div and a required property on the input. Either could be targeted by your css.

1 Like