Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Answered

Trigger the ribbon button on change of a field on the form

Posted on by 1,017

Hi, 

I have a requirement to trigger the ribbon button on change of a field on the form. Please let me know the step by step if this can be achieved ?

Thanks.

  • yify Profile Picture
    yify 1,017 on at
    RE: Trigger the ribbon button on change of a field on the form

    Thanks Andrew, this is very helpful.

  • Verified answer
    a33ik Profile Picture
    a33ik 84,323 Most Valuable Professional on at
    RE: Trigger the ribbon button on change of a field on the form

    You can try reusing your JavaScript code as is in the code of your PCF - butenko.pro/.../

  • yify Profile Picture
    yify 1,017 on at
    RE: Trigger the ribbon button on change of a field on the form

    Hi Andrew,   I agree your point.  We have ABC ribbon  button on the Form that performs couple things.

    We have a requirement to add the same ABC button in PCF  and up on clicking it should perform same things as ABC button. So, I am thinking the way to achieve this is by configuring the PCF to a field on the form and on change of the field to call the ABC button so that I dont have to rewrite  all the  JS to TS files in PCF.

    Please let me know your thoughts.

  • a33ik Profile Picture
    a33ik 84,323 Most Valuable Professional on at
    RE: Trigger the ribbon button on change of a field on the form

    Hello James,

    Why do you need to "trigger the button" on the change of the field when you can just call the JavaScript that sits behind the 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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans