• Resolved eljailer

    (@eljailer)


    Hi Roland!
    A question: is it possible to show some record data as a tooltip on a pdb_list page?
    For example, pdb_list template is showing some list of users and general data, but I need to show some data on mouse hover over the last name (as it is the Single Record Link Field).
    If it’s too much of a hassle to explain, at least a point to right direction would be much appreciated.
    Thank you in advance,

    best regards,
    Elvis.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author xnau webdesign

    (@xnau)

    The first thing to know is that a tooltip is the “title” attribute of an HTML element.

    This means that to add it to a Participants Database list, you need to use a custom template. In your template, you would add your tooltip content as the “title” attribute of the field before it is displayed.

    For example:

    <?php
    $this->field->attributes['title'] = 'This is your tooltip';
    $this->field->print_value();
    ?>
    Thread Starter eljailer

    (@eljailer)

    OK, thank you very much!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Data from the record as a tooltip’ is closed to new replies.