How can I conditionally update a status of a field