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 :
Customer experience | Sales, Customer Insights,...
Answered

Show a PopUp when pressed MarkAsWon button

(0) ShareShare
ReportReport
Posted on by 448
Hi all,
in the opportunities I try to have a simple popup with some indication for users, when they press the MarkAsWon button.
I follow indications in other post (https://community.dynamics.com/forums/thread/details/?threadid=94966964-xxxx-ee11-yyyy-6666aaa9c11b), but the popup doesnt appear.
This where I've inserted the instruction to have the popup:
 
this my javascript

can somebody tell me where I'm in wrong?
thanks for any suggestion or idea.
 
I have the same question (0)
  • Verified answer
    DiePic Profile Picture
    448 on at
    If it helps anyone, I completely change my function and now it works.
    this is the function:
    function MarkAsWonPopoUp2(primaryControl) {
        var formContext = primaryControl;
        
        // Your text content
        var popupText = "!!! ATTENZIONE: - opportunita' acquisita !!!\n\nInserire la CONFERMA d'ORDINE del cliente, all'interno della sezione DOCUMENTI\nUtilizzare i report Power BI per controllare la documentazione inserita\n\n***";
        // Show an alert dialog with the specified message
        alert(popupText);
    }

     

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 > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 72 Super User 2025 Season 2

#2
Daniyal Khaleel Profile Picture

Daniyal Khaleel 32 Most Valuable Professional

#3
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 29 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans