For better matching, setRequiredFields sets a class, not a data attribute.