Iāve been reading docs and toying around all day trying to get some customs fields in the convert leads layout. Iāve achieved some moderate success so far in modifying the metadata located at: custom/modules/Leads/metadata/convertdefs.php simply by adding:
array(
āfieldname1ā,
āfieldname2ā
)
and then rebuilding vardefs through the admin > repair dialog.
The problem is when I try to add a relate field. It doesnāt show up.
For related fields, the best Iāve gotten is,
array(
ārelatedcrop_cā =>
array(
ānameā=>ārelatedcrop_cā, ādisplayParamsā=>array(āsizeā=>90),
ālinkā => āfarm_Cropsā,
ālabelā => āCropā,
ārnameā => ānameā,
āid_nameā => āCrops_idā,
ātypeā => ārelateā,
ācustomCodeā => ā{html_options name=āOpportunityrelatedcrop_cā options=$fields.relatedcrop_c.options selected=$fields.relatedcrop_c.value}ā
),
To show a field in the layout, but it doesnāt populate. Somehow I think Iām invoking something incorrectly or donāt understand the data structure.
Does anyone have any guidance?
Thanks in advance.
EDIT: It might also be worth mentioning that my relate field is a custom module.
And that I would also be satisfied if there was a way to convert text fields to relate fields in workflows, as a workaround for converting leads automatically instead of manually.