Contacts: add relate field like accounts relate field

Hi all,
I have an account custom module (my_accounts) and I would like to add a relate field in the contacts module, called my_accounts, which works as the relate Accouts field.

That is, when I see contacts in the sub-panel of my module, I would like the my_accounts field to be filled in (as happens when I add a contact in accounts).

I was hoping it was enough to add the relationship in contacts to have the field available but it is not so.

So what do I have to create manually in vardefs?

Thank you very much for helping.

If it is a one-to-many relationship, in the right direction, with all the proper deploys and rebuilds, a subpanel should automatically be created for you.

1 Like

Thank you! It works perfectly.