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
P.kumar 27P.kumar 27 

In order to change lead status from Working to Converted, make it a requirement that No. of Locations and monthly cash volume amount field be filled out

Sai PraveenSai Praveen (Salesforce Developers) 
Hi,

Are both fields on Lead object? Are you okay with Validation rule or do you need trigger logic for this

Thanks,
 
P.kumar 27P.kumar 27
Hi Praveen
Yes , two fields are on Lead object. I need help on validation rule.

Thanks
 
Sai PraveenSai Praveen (Salesforce Developers) 
Hi praveen,

Can you check the below validation rule. Replace the API names according to your org.
 
AND(ISPICKVAL(PRIORVALUE( Status ),"Working"), ISPICKVAL(Status, "Converted"), or(ISBLANK( NumberofLocations__c ),ISBLANK( monthly_cash_volume_amount__c )) )

Let me know if you face any issues.

If this solution helps, Please mark it as best answer.

Thanks,