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
Emilee Crocker 3Emilee Crocker 3 

I need to have an IF THEN statment to update a field.

I need to have an IF THEN statment to update a field. What I have so far is this: IF( Action_Taken_to_Close_Complaint__c <> " ",  Status__c = "CLOSED", Status__c = "IN PROGRESS")
Kai Herng LauKai Herng Lau
Hi Emllee,

May I know what is the overall if..then codition? Maybe you can try this:

IF( Action_Taken_to_Close_Complaint__c <> " ",  IF(Action_Taken_to_Close_Complaint__c == "Something", "Yes", "No"), Status__c = "IN PROGRESS")
Emilee Crocker 3Emilee Crocker 3
Hi Kal,
I need it to be IF there is text in the action taken to close complaint then status is closed, but if there is no text then it stays as is.