Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Excerpt
hiddentrue

Customize the contents of the popup when a user hovers over an event.

...

This article will explain how to create a new Hover Definition, how to add fields and related lists to it, and how to apply it to the Scheduler.

Tip

Even though the label of the object is Hover Definition, the API name of this object is B25__Reservation_Display__cIn older Booker25 versions, the label of the object was Reservation Displays, so look for this if you can't find Hover Definition.

Create a new Hover Definition

First, let's create a new Hover Definition that will act as a collection of fields and related lists to show in the hover popup.

  1. Open the app launcher and search for the tab Hover Definitions

  2. On the Hover Definitions tab click New
  3. For the SObject Type field input B25__Reservation_Template__c

    Warning

    Note that this last step is different from creating Hover Definitions for the normal reservation calendars, where the SObject Type must be B25__Reservation__c.


Add fields to the Hover Definition

We have now defined a Hover Definition, but it will not show any fields or related lists yet. Let's add some fields.

  1. Navigate to the related tab of the Hover Definition
  2. Click new on the Hover Fields related list.
  3. Fill in the fields on Hover Field (see table below)
  4. Save the record and repeat the process for all fields you want to display.

...

  1. Click new on the Related Lists related list.
  2. Fill in the fields on Related List (see table below)
  3. Save the record and repeat the process for all related lists you want to display.
Field NameDescription
Related List NameThe API name of a relationship from B25__Reservation_Template__c. For example B25__Reservations__r
LabelThe label to display at the top of the related list.
OrderNumber that determines in what order the related lists are shown. Lower numbers come first.
Order Records ByComma separated list of API field names on the related object. The records in the related list will be ordered based on these fields.
Record LimitThe maximum number of records to show in this related list.

For a related list to display it needs related list fields. these work in the same way as hover fields but are a related list under related list.

...

The Hover Definition dropdown mentioned above always has a special option 'Use Contexts'. If you select this option, Booker25 will use the same behavior as the normal calendars. You can find more information on how Reservation Display Contexts work in this article: Customize Customise the Reservation fields shown on the calendar and hovers

Note that only the View context field applies on Schedule calendars.

...