Iâm trying to get the Accountâs value type and show it at Contactâs custom field that I have made in the same way that Accountâs type field (dropdown with the same values).
The problem is that when i create a new contact i would like this custom field filled with the same vale was put at account, as it happens with another fields like phone, country, etc.
I have already try to edit the editviewdefs.php from contact module but maybe Iâm doing something wrong or the solution that I found it doesnt work. How could I do this?
Iâm a bit stuck and a little help would be awesome.
Well 1st step I agree! In the 2nd process I desegree.
Instead you edit the edit view in metada folder, I think that it is a better way to use the file in the views folder (both edit and detail view).
In those files, edit the Display function. Once you have the Contact bean in your $bean variable, get the Account id from your $bean, query for it (using PHP and Sugar framework) and give to your contactâs dropdown field the value that your query return.