Custom user profile fields are a significantly harder problem, because they have to be loaded from a different database table. It might be possible to make it work, but it is certainly not easy. At any rate, the issues in doing this are really a Moodle core thing, they are not specific to the quiz.
Quiz
Username in quiz results
This discussion has been locked so you can no longer reply to it.