Update two records in two differents stateless forms

Update two records in two differents stateless forms

How can I can Update records in two forms by a stateless form by a stateless form?

Those two forms are "Container" and "Sample Tracking". They are linked by a lookup field "Container" in "Sample Tracking".

I want to update the lookup field "Container" and also some fields in the form "Container"...By cliking on a button "Attach Container" in the "Samples Received View". I don't figure out how can I can do to update the current record and also do the link to the record in "Container Form".

Thank you to help me