Priti Gohil (PwC) asked in #TrailheadMay 26, 2020, 9:54 AMValidation Rule - Child objectCan anyone guide me how to write Validation rule, When Field status is Complete / cancelled at that time child object should not allowed be created1 answerSortSort by DateSort by Most HelpfulSort by DateDavid Zhu (Independent Contractor)May 26, 2020, 11:57 AMYou may create a validation rule on child object assuming the field is a picklist data type.AND( ISNEW(),OR( ISPICKVAL(Parent__r.field1__c, 'Completed'), ISPICKVAL(Parent__r.field1__c, 'Canceled') ))Show MoreReply in Slack
David Zhu (Independent Contractor)May 26, 2020, 11:57 AMYou may create a validation rule on child object assuming the field is a picklist data type.AND( ISNEW(),OR( ISPICKVAL(Parent__r.field1__c, 'Completed'), ISPICKVAL(Parent__r.field1__c, 'Canceled') ))Show More