+ Start a Discussion
pranav shah 40pranav shah 40 

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.