could one filed content sync another filed in other module?

Hi there,

I create a user in Users Module, and there is one filed named Department.

Now I add a new field named Department in Account Module, to capture the Department info of the Assigned to user from Users Module

the Department field in Account module can capture the Department in Users module automaticly when the Assigned to user changes in Account Module.
How to do it?
Thank you very much.

Chris

Hi
You should use logic hook - before_save.

Regards,
simba-sys

Hi Simba-sys,

thank you very much.
could you tell me which file should I add the logic hook? i am confused about it

Chris