Fixed #22383 -- Added optional html required attribute to required fields.