Update a field value when another field is edited

I was suspecting this. Basically think that I need to setup a listening function. Not even sure that’s what it is called.

On change, take the id of the reference and update a model condition with it in order to get access the desired data. Then I can update the second field.