Scheduling

Website Booking Widget

Add a 24/7 appointment booking button or custom navigation menu link directly to your clinic website.

What Is the Booking Widget?

The CaseIndex Booking Widget is a small piece of JavaScript code you paste onto your practice website. Once installed, it adds a floating "Book Appointment" button to every page of your site. When a patient clicks it, a booking form opens as an overlay — they choose the doctor, date, and time slot, fill in their details, and confirm. The booking lands directly in your CaseIndex calendar.

There is nothing your patient needs to download or install. It works on mobile, tablet, and desktop browsers.

One-click Installation

Copy one code snippet, paste it into your website. Works on any platform — WordPress, Wix, custom HTML.

No Double Bookings

Already-booked slots are automatically greyed out. Patients can only pick truly available times.

Google Ads Tracking

Every successful booking fires a conversion event to Google Ads, showing you your exact cost-per-patient.


Who Should Use This?

This feature is designed for clinic owners and doctors who:

No website? No problem.

You can also share your public booking link directly — e.g. on WhatsApp, in your Google Business profile, or in social media bios. See the Public Booking Page guide.


Part 1: Install the Widget (5 minutes)

1

Open the CaseIndex Mobile App → Settings

On the bottom tab bar of the mobile app, tap Settings (the gear icon). Then tap the General tab at the top of the settings screen.

2

Find "Public Booking Link"

You will see a section labelled "Public Booking Link" that shows your unique booking URL. Below it is a button labelled "Email Website Widget Code".

3

Tap "Email Website Widget Code"

The system will immediately email the owner's email address (the email used to create the CaseIndex account) with the ready-to-use widget code snippet.

Install first, configure ads anytime

The widget code snippet is universal and never changes. You or your web developer can install it right away. You (or your Google Ads manager) can set up conversion tracking in CaseIndex Settings anytime later — without ever needing to touch your website code again.

4

Copy the code from the email

Open the email on your computer. You will find an HTML snippet that looks like this:

<!-- CaseIndex Booking Widget --> <script src="https://book.caseindex.in/widget.js" data-script-url="https://book.caseindex.in" data-business-id="your-unique-id-here" data-button-text="Book Appointment" data-button-color="#0d6efd" data-floating="true" async> </script>

Select all of it and copy it to your clipboard.

5

Paste into your website, just before </body>

Open your website editor and paste the code at the very end of the HTML, just before the closing </body> tag. Save and publish your site.

If you use a page builder:
  1. WordPress: Go to Appearance → Theme Editor → footer.php, paste before </body>. Or use a plugin like "Insert Headers and Footers".
  2. Wix: Site → Settings → Custom Code → Add Code at Bottom of Body.
  3. Squarespace: Settings → Advanced → Code Injection → Footer.
  4. Webflow: Project Settings → Custom Code → Footer Code.
6

Test it!

Visit your website and look for the floating "Book Appointment" button in the bottom-right corner of the page. Click it to verify the booking form opens correctly.


Customization & Adding Specific Buttons

By default, the widget automatically shows a floating "Book Appointment" button in the bottom-right corner. You can also trigger the booking popup from buttons at specific locations (like your navigation header or banner), or customize the appearance.

Add a Booking Button in Specific Locations (Header, Menus, or Banners)

To trigger the booking popup from any button, menu link, or banner on your website, simply add the CSS class caseindex-trigger. Or paste this HTML snippet wherever you want the button to appear:

<!-- Place this anywhere on your page --> <a href="javascript:void(0)" class="caseindex-trigger">Book Confirmed Appointment</a>
Platform specific tips:
  • WordPress Menus: Go to Appearance → Menus, create a Custom Link with URL #book, and enter caseindex-trigger in the CSS Classes field.
  • Elementor / Page Builders: Create a normal button widget, set the link URL to #book or javascript:void(0), and add caseindex-trigger under Advanced → CSS Classes.

Customize or Hide the Floating Button

You can adjust these attributes directly in the main widget script tag on your site:

SettingWhat it doesExample in Script Tag
data-floatingSet to "false" if you only want your custom header/menu buttons and want to hide the bottom floating badgedata-floating="false"
data-button-textChanges the text label on the floating buttondata-button-text="Book Confirmed Appointment"
data-button-colorChanges the background color of the floating button (any HEX code)data-button-color="#16a34a"

Running Google Ads Campaigns?

You can track booked patients directly in Google Ads to measure cost-per-patient and optimize your bidding. CaseIndex connects to your Google Ads account in 2 minutes with zero website code changes. See the Google Ads Conversion Tracking Guide →


Frequently Asked Questions

Do I need any technical knowledge to install this?

No. If you can copy-paste text and know how to paste code into your website's footer, that is all you need. For platforms like WordPress, free plugins like "WPCode" (Insert Headers and Footers) make installation effortless.

Can I use both the floating button and a header menu button?

Yes, absolutely. By leaving data-floating="true", the floating button remains at the bottom-right, while any menu link with class="caseindex-trigger" will also open the exact same booking modal.

Can I hide the floating button and only use my own website buttons?

Yes. Simply set data-floating="false" in the script snippet. Then use class="caseindex-trigger" on your website buttons or menu links.

What if I have multiple doctors or clinic branches?

The booking widget automatically displays all active doctors, clinic branches, and available consultation time slots configured in your CaseIndex app. Patients choose their preferred doctor and branch before picking a time.

Does the widget work on mobile phones and tablets?

Yes. The widget is fully mobile-responsive and adjusts seamlessly to small screens, offering a smooth app-like booking experience for patients.


Related Guides

Public Booking Page

Share your standalone 24/7 web booking link across WhatsApp, Instagram, and SMS.

Google Maps & Search

Add a 1-click "Book Online" button directly to your Google Business Profile.

Google Ads Tracking

Track patient conversions and calculate exact cost-per-patient from your ad spend.