> ## Documentation Index
> Fetch the complete documentation index at: https://help.revenuehero.io/llms.txt
> Use this file to discover all available pages before exploring further.

# How to install the scheduler script?

> How to set up the booking widget as a pop-up after form submission.

**Pop-up widget after the form is submitted**

Let's look at how to install the script

Here is how you set up the booking widget as a pop-up after form submission

1. In the choices for "**Where would you like to install this router?**", select "**In your form**".

<Frame>
  <img src="https://mintcdn.com/revenuehero/fbhrYeGfLAKa5Rjp/images/create_inbound_router/25.png?fit=max&auto=format&n=fbhrYeGfLAKa5Rjp&q=85&s=c006b93ab4d4e529f8e0fa908e060dce" width="2940" height="1662" data-path="images/create_inbound_router/25.png" />
</Frame>

2. **Choose your form provider** (Custom/Hubspot/Formspree) from the drop-down list. This ensures that we generate the most compatible version of the JavaScript code snippet.

3. Now, **copy** the router snippet. You'll find two parts to this script.

Add the first script to the `<head>` section in your website builder/CMS.

<Frame>
  <img src="https://mintcdn.com/revenuehero/fbhrYeGfLAKa5Rjp/images/create_inbound_router/26.png?fit=max&auto=format&n=fbhrYeGfLAKa5Rjp&q=85&s=6ac4c952f12aa8cc646096f365aa9f29" width="2940" height="1662" data-path="images/create_inbound_router/26.png" />
</Frame>

Add the second part of the script before the closing body tag on your page. Depending on your CMS/Website builder, you can also add this to the footer section.

<Frame>
  <img src="https://mintcdn.com/revenuehero/fbhrYeGfLAKa5Rjp/images/create_inbound_router/27.png?fit=max&auto=format&n=fbhrYeGfLAKa5Rjp&q=85&s=48cb27dea760d29b64dfc04ba6ac2fb0" width="2940" height="1662" data-path="images/create_inbound_router/27.png" />
</Frame>

4. You're all set!

***
