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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Answered

Portals - Header Template - Call JS Function on Click of Sub Link

(0) ShareShare
ReportReport
Posted on by 50

Hi All ,

i want to call custom JS function on click of particular web link in header template. For that web link, i don't have URL but need to open out look new email window. Hence, i need to write JS Function for the same.

Can anyone please help on that 

I have the same question (0)
  • Verified answer
    Manoj Mane Profile Picture
    1,020 on at

    Hi ingu 

    Please refer the below link:- 
    https://www.jquerywithexample.com/2013/09/open-outlook-on-button-click-in-jquery.html

    I have tested the above code the mail will get send out , but for that you must have the outlook desktop app open at your end. 

    And please update the To and Subject of email as per your requirement.

    Thanks,
    Manoj.

    Please mark this as VERIFIED if it helps.

  • ingu Profile Picture
    50 on at

    I figured out answer for this question. Just write {% if   sublink.name  == "Your Sub Link Name" %} Inside sub link for loop and call javascript function in onclickevent.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 57 Super User 2025 Season 2

#2
Satyam Prakash Profile Picture

Satyam Prakash 24

#2
Eugen Podkorytov Profile Picture

Eugen Podkorytov 24

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans