How to make a profile field readonly depending on a value of another field. I want to disable editing the email field (in the settings' page) if the user is a student, where "student" is a value of a profile field (member type).
How could this be accomplished? It sould be in the general.php page & I can get the value of the "memeber type" field for the specified user but I couldn't find out how to make the email field readonly if the value is student! using the readonly attribute when the condition is true, makes the field readonly in all cases!
Anybody knows how?