Ascora Booking Forms

Put the Ascora booking form on your website

3 min read Ascora booking form

The Embed tab gives you the code that puts the form on a page of your website. It has two sections in the left menu: Embed code and Form links.

Before you start

The code is held back until customers would have something to book. Until then the page says Finish setting up before you put this on your website and lists what is still to do, each with a button to the page that fixes it:

  • Name and time zone: an Ascora credential is chosen on the Ascora Bookings settings, and the form has a time zone.
  • Add services: at least one service, unless the form skips the service step.
  • Choose who takes the bookings: every service that takes a time has at least one staff calendar that is switched on, or the form's default calendar has staff when it has no service step. A callback service, and a service that takes no date and time, need nobody.

Show the code anyway is there for a developer building the page ahead of time. The form is then flagged "This form is not ready", and customers who open it see only the services that have staff.

Step by step

  1. Open your form from Forms, then the Embed tab.
  2. Under Embed Code, click Copy code and paste it into your page where the form should appear. Your web developer may need to do this.
  3. Check the page loads the form. The form is published to customers each time you save it, so anything you change in the dashboard is live as soon as it saves.

Copying anything from the page is what tells Formpiece the form is going on a website. It ticks off Put it on your website in the setup steps, and the form's status reads Ready once everything else is done too.

What is on the page

  • Embed Code: two lines. One loads the Formpiece script from fp-ascorabooking.js. The other is an empty div with the id FPForm and a data-id holding your form's ID. Paste both together.
  • Form ID: Copy Form ID gives the ID on its own, for website builders that ask for it separately.
  • Wordpress Plugin: Download Wordpress Plugin gives you the Formpiece plugin. Install it, then paste the shortcode [fp_ascorabookingform form_id="…"] on the page or post where the form should appear. A second shortcode with region="uk" is listed for customers in the UK.

When it goes wrong

The page shows the setup list, not the code

One of the three steps above is not done. Open the button beside it.

The form doesn't appear on the website

  • The script line or the div is missing from the page. Both are needed.
  • The page builder strips script tags. Use the WordPress plugin and shortcode, or ask your developer to add the script to the theme.
  • The form was archived. An archived form is not served. Restore it from Forms.

The form shows no services

A service with no staff calendar is left off the form. Open Service Calendars and add staff. See Service Calendars.

Tracking events don't fire

The tracking tool also has to be loaded on the same page. See Tracking.