I have seen a couple of posts and found the JavaScript below to change the color of the field label only when the field is required.
$(document).ready(function () {
2
$('.cf-required').parent().css('color', '#cd2026');
3
});
This has been working well for me until I tried to put required fields in a collection. The first set of fields gets colored labels but any additional sets don't get colored labels. Ideas on how I would get all the additional sets to be colored?