function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Greg RohmanGreg Rohman 

Duplicate <apex:outputfield> and hover not working



I have a page where I have multiple contacts being displayed via< apex:outputfield>. I've been directed to use outputfield because it includes the basic hover functionality for the record (based on the mini page layout), and that works well enough.


The problem is when there are several of the same contacts displayed on the same page. When there are more than one of the same record, the position of the hover details popup is always with the first occurence of the contact. My assumption is that has something to do with the GetHoverDetails function relying on the id of the contact, and when there are multiple instances of the same contact (and thus the same id on an <a> or <div> container), it chokes.


I've tried passing in a unique identifier from the controller to use as the ID for the outputfield, but the ID on outputfield has to be a literal value.


Any suggestions as to how to enable hover details for duplicate contacts on the same page? Thanks in advance.



Brian M.Brian M.
Hello, I would like to know if you can implement "hover details" on outputfields, without using the apex detail tag. Does the outputfield support this without the use of the detail tag? I understand there are a couple solutions out there that involve hand coding the popup, but I am talking about builtin support. Thank you. Regards, Brian M.