Is possible to avoid the `_c` on custom fields?

Leads module has the field website, while Target does not.

In our organization we need website in Target, so we added website_c to Targets: the problem is that when we convert a Target to a Lead that field is not automatically copied since it does not have the same nae (and we had to setup a workflow to do it): I guess if we were able to create website and not website_c in Targets, we did not need the custom workflow.

thanks in advance for your feed!


Maybe you can create website_c in Leads via studio?

or you can delete current website from Targets and create it manually from PHP code
got to custom/Extension/modules/targets/Ext/vardefs and create there your PHP file for website - for example, website.php

with smth like:

$GLOBALS["dictionary"]["module_name"]["fields"]["field_name"] = array (
    'inline_edit' => '1',
    'labelValue' => 'field_name',
    'required' => false,
    'name' => 'field_name',
    'vname' => 'LBL_field_name',
    'type' => 'varchar',
    'massupdate' => '0',
    'default' => '',
    'no_default' => false,
    'comments' => '',
    'help' => '',
    'importable' => 'true',
    'duplicate_merge' => 'disabled',
    'duplicate_merge_dom_value' => '0',
    'audited' => false,
    'reportable' => true,
    'unified_search' => false,
    'merge_filter' => 'disabled',
    'len' => '255',
    'size' => '20',

Make sure to change module_name and field_name in all code above
also, it’s an example for simple textField like Job Title so it’s missing some URL field parameters like Clickable and HTTP:// prefix

Go to Admin-repair and do QRR
after that, the defined field will appear in your module and db as a real field without _c

in module/lead/vardefs.php
website field looks like

         'website' =>
                    'name' => 'website',
                    'vname' => 'LBL_WEBSITE',
                    'type' => 'url',
                    'dbType' => 'varchar',
                    'len' => 255,
                    'link_target' => '_blank',
                    'comment' => 'URL of website for the company',

so just replace 'type' => 'url', and add 'link_target' => '_blank', to my first example code