Make field in listview clickable

Hello,

How to make any field in listview behave as hyperlink? And when you click it, then go to detailview.

By default field with “name” id is cliacakble, but i dont want to use this field.

thx

Hi, welcome to the Community! :tada:

Are you a developer?

Search for “customCode”, it’s an entry you can put into the view defs.

Thx, seems customCode does not work for listview. I have made it work using logic hook on process_record event.

For Lead

create custom/modules/Leads/metadata/listviewdefs.php (i did it from /modules/Leads/metadata/listviewdefs.php) then inside i add “‘link’ => true,”

ACCOUNT_NAME' =>
  array (
    'width' => '15%',
    'label' => 'LBL_LIST_ACCOUNT_NAME',
    'default' => true,
    'link' => true,
    'related_fields' =>
    array (
      0 => 'account_id',
    ),
2 Likes

omfg, you are awesome;) It works

Ah worked for me too! Is there a way to enable an option or checkbox that can be ticked when creating a new field in Studio to link it? To avoid going into the file every time for different modules and fields in those modules?