Hello all!
We are working on building a ticketing app in Rei3 and we would like to set the value of a relationship field (status) when the user clicks a 'this is complete' button so that they do not have to perform multiple mouse clicks.
Ticket has a status which is a m:1 relationship field to our ticket statuses:

In the ticket form we can select a status from the drop-down list but we would like to set the status automatically when the user clicks a 'Done' button.
We have a front-end function that calls a back-end function to get the id of the 'Done' status and then set the status field of the ticket form as that id:

This is triggered by the user clicking a 'Done' button.
The issue that we are seeing is that when the user clicks the Done button, the form is saved and closed, but the status is not updated and no errors are logged in the console. We have verified that the back-end function is returning the correct id of the status by logging it to the console.
Can a relationship field be updated in this way or is there an alternative method that we should use instead?
Many thanks!