Make a text field required if a certain picklist is selected #inSalesforce

Suppose the text field is Opportunity field StageName


If the Stage is On Hold, mention the Reason for On Hold


Validation Rule on Opportunity:

AND(ISCHANGED(StageName),TEXT(StageName)= 'On Hold', ISBLANK(Reason_for_OnHold__c))

Error Message:  Please mention the Reason for On Hold

Error Location: Reason for On Hold


Visual: https://www.youtube.com/watch?v=DiGXfgIfpQc

Comments