Complete guide to implementing and customizing the Omnicasa Appointment Widget for your property listings.
Add the widget script to your HTML page. It can be placed in the <head>, before the closing body tag, or anywhere else — the script automatically waits for the page to load before initializing:
<script src="https://appointment-widget.omnicasa.com/widget.js"></script>A minified version is also available for better performance:
<script src="https://appointment-widget.omnicasa.com/widget.min.js"></script>Place a button or div element with the required ID and data attributes. Use a button for modal mode (default) or div for inline mode:
<button id="contact-appointment-plugin"
data-key="YOUR_API_KEY"
data-property-id="12345"
data-email="contact@example.com"
data-language="en">
Book Appointment
</button><div id="contact-appointment-plugin"
data-mode="inline"
data-key="YOUR_API_KEY"
data-property-id="12345"
data-email="contact@example.com"
data-language="en">
</div>Add additional data attributes to customize the widget's appearance and behavior. See the Data Attributes tab for a complete reference.
You can automatically open the widget on page load by adding the openAppointment=true parameter to the URL:
https://example.com/property/12345?openAppointment=trueWidget automatically finds elements with the required ID
Queries the API to check appointment availability
Creates an interactive button and booking interface
Need help or have questions? Contact supportnl@omnicasa.com or supportftr@omnicasa.com
Widget Version 2.1.0 • Documentation last updated: Loading...