Replicate relate field behaviour in Leads

Hi,
based on this tutorial,
http://sugarmods.co.uk/how-to-change-the-account-name-field-back-to-a-relate-field-in-leads/

I would like to convert “Account Name” field in Leads module back to releate field.

This worked fine, but i would also like to auto populate fields(like city, address, etc) when an account selection is made just like in Contacts module.

Can anyone hel pe please?

Thank you

Hi,

Take a look at these two tutorials:
https://johndopenotes.wordpress.com/2013/03/18/sugarcrm-populating-fields-using-a-relate-field/
http://developer.sugarcrm.com/2011/08/31/howto-using-a-relate-field-to-populate-a-custom-field/

These tutorials both show how you can do this by editing a file found at /custom/Extension/modules/<MODULE_NAME>/Ext/Vardefs/
If these don’t help then you may also be able to do it through the use of Logic Hooks.