- This line was added.
- This line was removed.
- Formatting was changed.
This feature is only available on Lightning calendars. VisualForce calendars support a similar (but more limited) feature: Apply custom price calculations
Booker25 allows you to hook in to the logic behind the reservation form, giving you a lot of freedom to customize its behavior.
This article will give you a high level overview of the feature. For a deeper dive into this topic, check out these other articles:
Quick Start Guide to help you get your first implementation up and running
API Reference for details on the methods and objects you can use
Code Sample Library for useful examples of things you can do
High Level Overview
At a high level, this is what happens when you provide your own customization:
You create a class that has a special method ‘customize’.
In the customize method, you add your own handlers for specific events coming from the form.
When something happens on the form, your handlers will be executed.
In your handlers, you can run your own logic and manipulate the form.
Things your event handlers can respond to (we intend to add a few more in the near future):
A new reservation being created
A value on the form being modified
A record being added to a related list
A record being removed from a related list
A record on a related list being modified
Things you can do in your event handlers to modify the form are very similar to the above list:
You can set any value on the form
You can add or remove records on related lists
You can modify records on related lists
There is also a special type of handler relating to searches. These allow you to respond to the following things:
The user searching in a lookup field
The user searching in a related list
Things you can do in a search handler:
Narrow down the default results with extra AND-conditions
Expand the default results with extra OR-conditions
Generate your own results
On this page