I'm not sure if you can do that through Studio and I've yet to get an HTML field to display anything at all, so I've had to come up with my own workaround to do what you're wanting. This is how I got the functionality you're asking for. Note that this involves manually editing files. If you're not comfortable doing that, I'm sure someone else can provide a solution through Studio. As per usual, back up any files before making changes.
From your root sugar directory, navigate to custom/modules/<MODULE NAME>/metadata. You should have a file named editviewdefs.php. Open that file in a text editor. Search for the name of the field the user is entering the information in (the left column in your previous post). It should look something like
Code:
0 =>
array (
'name' => 'primary_address_street',
'label' => 'LBL_PRIMARY_ADDRESS',
'type' => 'address',
'displayParams' =>
array (
'key' => 'primary',
),
), Copy that section of code from your file and paste it directly below itself. Change the 0 to a 1 so that it will display on the right column. Change the name and label fields as appropriate and remove all other fields. Then add the following line below the label field.
Code:
'customCode' => '<a href="saywhat.php?record={$fields.id.value}" target="_blank">Link text goes here</a>', Once you've saved the file, do a quick repair from the admin section in Sugar to clear the cache so you can see the new changes take effect.
Bookmarks