+ Start a Discussion

how to restrict closing one milestone without closing other milestone

Hi All,

Please help me with the below requirement.
I have parent object Opportunity and child object Milestones. Opportunity has two milestones M1 and M2 which has status field. I want to restrict changing the status to completed on M1 unless M2 is completed. Can wedo this through VR?
Any thoughts appreciated.
Sohan Raj GuptaSohan Raj Gupta
Hi Cubby,

You can restrict user to change status using Trigger.

In trigger you can get all open MileStone using Opportunity ID and if any MileStone is not marked as completed you can show error message on page.

Hope this will help you. Let me know if it helped or you need any more assistance. 

Please mark this is as the solution if it solved your purpose.

Sohan Raj Gupta