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
Amrit MajhiAmrit Majhi 

how to make sure my field should not be populated if the job status is Open

PriyaPriya (Salesforce Developers) 
Hey Amrit,

Create a validation rule and in the error condition forumula, enter the below code :-
ISPICKVAL( JobStatus , 'Open')  && 
 NOT(ISBLANK( fieldAPIname ))
 

Kindly mark it as the best answer if it works for you.

 

Thanks & Regards,

Priya Ranjan


 
mukesh guptamukesh gupta
Hi Amrit,

It's depend the place from where you are populating field, like from Apex trigger , workflow and process builder. we need to add a condition 

like that:-
 
if(obj.JobStatus  != 'Open'){

// populate your field here
}

if you need any assistanse, Please let me know!!

Kindly mark my solution as the best answer if it helps you.

Thanks
Mukesh