I'm implementing task creation functionality, how can I automatically save the currently logging in user ID to the task_creator field in the task collection?
You can use the beforeChange collection hook to set the value;
Star
Discord
online
Get dedicated engineering support directly from the Payload team.