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
pranavshahpranavshah 

Updating a field using a component

Hi All,

I have a one requirement , i have status__c f field in task   obj, once the status status  is changed to closed, i need to update two fields closedby & closedon , which i am not showing on UI .. how can i have achieve this using lightning component,

Regards
Pranav
mritzimritzi
Write a workflow rule/Process builder

Evaluation criteria: whenever a record is created and edited to meet the criteria
Object-> Task, Criteria : Status__c = 'Closed'

Immediate action:
FIeld Update -> ClosedBy -> User.Id, ClosedOn -> Now()

save & activate. Done.

In case this helps solve your issue, please mark this as Best Answer for others to benefit in future.