Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Pages - Power Apps Portals
Answered

Add JS to header link

(0) ShareShare
ReportReport
Posted on by 173

Hi, I am trying to add JS to one of the default header links to get the login user email address, how can I add that? The link is in web link sets

Screenshot 2022-02-22 215702.jpg

  • Verified answer
    ragavanrajan Profile Picture
    7,036 Most Valuable Professional on at
    Re: Add JS to header link

    Hi @sdnd2000 

     

    Try this

     

    In Portal Management: 

     

    1. Under content > Web pages > Home 

    2.  Localized Content > Home 

    3.  Advanced > Custom JavaScript 

     

    Add your script here 

    // $( document ).ready(function() {
    // console.log(555,"Redirect check");
    // $(location).attr('href', 'https://yourportal.powerappsportals.com/contact-us/');
    
    // });
    

     

    4. Hit Save and Close 

     

    ------------
    In Portal studio

    1. Pres sync configuration and browse the website. And press "Ctrl+F5" 

    Hope it helps. 
    ------------

    If you like this post, give it a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users to find it.

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Pages

#1
Lucas001 Profile Picture

Lucas001 60 Super User 2025 Season 1

#2
Fubar Profile Picture

Fubar 55 Super User 2025 Season 1

#3
surya narayanan Profile Picture

surya narayanan 35