Hi,
How to get the StatusReason field value from Opportunity close as lost popup by using javascript?
Hi,
How to get the StatusReason field value from Opportunity close as lost popup by using javascript?
Hi Chinju,
Unfortunately there is no supported JavaScript API to get attributes on dialog form.
If you want to validate field on this type of form, such as Status Reason, please create a real-time workflow to detect field change.
1.OOB way:
Add Stop workflow action into the workflow:
Then it will throw business process error when condition is met
You could read guide below for a detailed configuration with business requirement.
https://gauravtempe.com/capture-required-data-in-bpf-before-closing-an-opportunity/d
2.Register a plug-in into CRM and execute it with the workflow
Supplement for plug-in:
Best Regards,
Leo
André Arnaud de Cal...
292,492
Super User 2025 Season 1
Martin Dráb
231,305
Most Valuable Professional
nmaenpaa
101,156