web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Pages / How to hide 'Change em...
Power Pages
Unanswered

How to hide 'Change email' option on the Change password page?

(0) ShareShare
ReportReport
Posted on by 73

Hi all

 

How can I hide/remove the 'Change email' option from the Change password page? Have managed to hide/remove it on the profile page

 

See attached image

 

Many thanks

 

HideChangeEmailOnChangePaswordPage.jpg
Categories:
I have the same question (0)
  • Lucas001 Profile Picture
    2,529 Super User 2026 Season 1 on at

    Hi @paulinolan,

     

    as changing the mail is a standard feature and set up as you create your page, there's no click solution for that.

    What you need to do is use your profile page, go into javascript and hide that specific row of the table.

    That code snippet does the trick for me. In case it is not working for you. Go to your profile page open the console and copy the css selector to paste it into jQuery as below.

    $('a.list-group-item:nth-child(2)').hide()

     

    Actually you will not "delete" the function with that, but hide it.

    You can also use .remove() to actually delete it from the DOM.



    --------------------------------------------------------------------------------------

    Hope that helps.

    If the post solves your problem, please mark it as solution. If it helps, consider a thumbs up.

  • PN-28081327-0 Profile Picture
    73 on at

    Hi @Lucas001 

     

    Thanks for your reply.

     

    We have already removed the change email option from our profile page. It is once you are on the Change password page that we don't want to provide change email as an option.

     

  • Lucas001 Profile Picture
    2,529 Super User 2026 Season 1 on at

    Hi @paulinolan,

     

    sorry haven' had a correct look at the picture.

    What you will need is to create a content snippet Account/ChangePassword/PageCopy and adjust the javascript to your needs.

    In my case, I deleted the relict of the profile image like that.

     

    Lucas001_0-1694786386186.png

    --------------------------------------------------------------------------------------

    Hope that helps.

    If the post solves your problem, please mark it as solution. If it helps, consider a thumbs up.

  • PN-28081327-0 Profile Picture
    73 on at

    Thanks @Lucas001 

     

    Is there another content snippet? I've put a simple console.log in there and the code doesn't execute.

     

    I've tried wrapping in 

     

    document.addEventListener("DOMContentLoaded", function(event) {
     
    and 
     
    $(document).ready(function() {
     

     

  • Lucas001 Profile Picture
    2,529 Super User 2026 Season 1 on at

    Hi @paulinolan,

     

    did you set it up as in the picture? type HTML and Account/ChangePassword/PageCopy and the script inside a <script></script> tag?

    It's working on my side.

  • PN-28081327-0 Profile Picture
    73 on at

    Hi @Lucas001 

     

    As a simple test I've set up the content snippet as

     

    paulinolan_0-1695028172694.png

     

    but nothing appears in the console

     

     

  • Lucas001 Profile Picture
    2,529 Super User 2026 Season 1 on at

    Hi @paulinolan,

     

    you missed something. Add the $(document).ready(function () {}) inside your <script> and change the display name exactly to the Name. Without the spaces.

     

    Hope that works.

  • PN-28081327-0 Profile Picture
    73 on at

    Hi @Lucas001 

     

    Good spot re the spaces! I've made the changes as below

     

    paulinolan_0-1695030992267.png

     

    but still seeing nothing in the console

  • Lucas001 Profile Picture
    2,529 Super User 2026 Season 1 on at

    Hi @paulinolan,

     

    unfortunately I don't know why it's not working on your side.

    Do you have another /PageCopy Content snippet for that page?

    Is there an error displayed in your console?

  • Fubar Profile Picture
    8,487 Super User 2026 Season 1 on at

    After making the JavaScript changes have you synced (or manually cleared the portal cache /_services/about) the portal - you have to clear the portal cached after such changes

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Pages

#1
Lucas001 Profile Picture

Lucas001 21 Super User 2026 Season 1

#2
Fubar Profile Picture

Fubar 19 Super User 2026 Season 1

#3
CN-06091549-0 Profile Picture

CN-06091549-0 18

Last 30 days Overall leaderboard