I want to show a section in the Opportunity form using JavaScript as soon as the opportunity is Closed. However, I'm unable to find an event that would trigger once Opportunity is Closed.
As per the following community discussion, it seems like the only way available is to use Ribbon Workbench to trigger JavaScript on the Click of Close as Won or Close as Lost buttons. But clicking on these buttons and opening the Opportunity Close dialog doesn't mean the opportunity is closed, the user could choose to close the dialog and not close the opportunity.
You can register an onchange event on the Status field.
When the status field value changes to 1 or 2 (indicating that the opportunity is closed), perform a custom action.
If my answer was helpful, please click Like, and if it solved your problem, please mark it as verified to help other community members find more. If you have further questions, please feel free to contact me . Best Regards, Dengliang Li
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.