How to disable editing the email field depending on the value of a profile field
-
Hi all,
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 should be in the general.php page. I can get the value of the “memeber type” field for the specified user to set the condition but I couldn’t find out how to make the email field readonly if the condition is true! using the readonly attribute when the condition is true, makes the field readonly in all cases!
Anybody knows how?
- The topic ‘How to disable editing the email field depending on the value of a profile field’ is closed to new replies.