Pre-populate Client Information on Booking Widget

IntakeQ allows you to pre-populate the client information on the embedded booking widget using javascript. This can be useful if you are using IntakeQ's booking widget as part of the user flow on your own website.

Consider the standard booking widget code snippet below:

<script>(function (c) {window.intakeq="your ID here"; var i = c.createElement("script");i.type = "text/javascript";i.async = true;i.src = "https://intakeq.com/js/widget.min.js?1";document.head.appendChild(i);})(document);</script><div id="intakeq" style="max-width:720px; width: 100%;"></div>

In order to pre-populate the widget with client information, add a script tag right above the standard booking widget code, as seen below.

<!-- pre-populate client info -->
<script>
    (function (c) {
      //pre-populate client
      window.intakeqClientName="Jack Black"; //required
      window.intakeqClientEmail="jackblack@email.com"; //required
      window.intakeqClientPhone="(222)222-2222"; //required
      window.intakeqClientDob="1983-10-23";//required only if DOB is enabled
     //window.intakeqReminderType=10; //this will disable appointment reminders
   })(document);
</script>

<!-- standard booking widget code -->
<script>(function (c) {window.intakeq="your ID here"; var i = c.createElement("script");i.type = "text/javascript";i.async = true;i.src = "https://intakeq.com/js/widget.min.js?1";document.head.appendChild(i);})(document);</script><div id="intakeq" style="max-width:720px; width: 100%;"></div>

When all the client information if provided via javascript, the system will skip the client form page and the end user will not see it.

Still need help? Contact Us Contact Us