function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
satish waghsatish wagh 

Prevent selecting picklist value as 'Completed' till all tasks under the project are completed.

I have two custom object called 'Project' and 'Task'. In 'Project' object 'Stage' field is a Picklist in which 'Not Started' ,'Development In Progress' ,'Testing', 'Completed' are values AND in 'Task' object  'Status' is a Picklist in which 'On Time' ,'Delayed' ,'At Risk' are values. 
Question is: User cannot update Project Stage to completed till all tasks under the
project are completed.
There is Master detail relantionship between Project object and task object. In which Project is a parent object and Task is a Detail object.