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

Announcements

No record found.

News and Announcements icon
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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
ManoVerse Profile Picture

ManoVerse 212 Super User 2026 Season 1

#2
CU11031447-0 Profile Picture

CU11031447-0 100

#3
NeerajPawar Profile Picture

NeerajPawar 76

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans