Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to disable editing the email field depending on the value of a profile field

  • @amalsh

    Participant

    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?

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to disable editing the email field depending on the value of a profile field’ is closed to new replies.
Skip to toolbar