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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Calling JavaScript on load of a ribbon button

(0) ShareShare
ReportReport
Posted on by 82
I need to show some alert on load of each tab, ( like service, sales, settings etc) of MS CRM 2011 On Premise. FOr that I need to place a ribbon button on each tab and need to call the JavaScript function on load of that button. Does anyone have elaboration regarding the exact steps I need to follow? I tried earlier but the function is not getting called. Thanks in advance.

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Adrian Begovich Profile Picture
    1,027 Moderator on at

    Hi Sumit,

    You can achieve this using the Ribbon Workbench and JavaScript.

    Using Ribbon Workbench, you can create buttons that call JavaScript functions. You will need to create JavaScript functions to alert messages, and have these functions run on click of the buttons you create in Ribbon Workbench.

  • Aric Levin - MVP Profile Picture
    30,190 Moderator on at

    As Adrian mentions below, you can use Ribbon Workbench to have Ribbon buttons calls JavaScript functions, but based on your question, I am not sure if that is what you are looking for.

    You mention you want to display alerts on the loading of "tabs". Sales/Service/Settings are basically navigation areas, so can you provide further details in case what you are looking for is not the Ribbon buttons?

  • Sumit Chavan Profile Picture
    82 on at

    Hi Aric and Adrian, Thanks a lot for your response. Basically I want to trigger a JavaScript function whenever a user logs in to Sales/Service/Settings(Navigation areas) that too in CRM 2011 On Premise. What I am trying is adding a ribbon button, and ON Load of that button I want to trigger my JavaScript, not on the click of button.

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans