Forum
Members Email Change after registration
Is it possible to allow a member to change their email address when updating their profile while still checking that it isn't already in use by another member?
Is it possible to allow a member to change their email address when updating their profile while still checking that it isn't already in use by another member?
Yes, it should be. What problem are you seeing?
Hi Drew
If i use the following which is from the registration form and dont change the email it throws up an error as the email address matches one already held when you hit save.
And if I take away the validation it just doesnt update the email field if the same email is used as another user has without telling you that there was an error.
You can't change the email address to one that's already in use by another account - that would result in two different accounts with the same email address.
I was trying to let the email address be updated on the same page as the rest of the users profile details but when the user doesn't change the email address and you hit save it throws up the error.
I have now put the email into its own form but it still wont update when I enter a completely new email address that isnt on file. It is showing the success message but not actually updating the email address to the new one entered.
If you're editing a member, the form ID needs to be
profile
.