🎉 Celebrate with 10% OFF on All Products! Use Code: GFEX10 Or Buy Any 2+ Items for 30% OFF with Code: GFEX30!

Gravity Forms Bookly Connector Premium Add-on Setup Guide

Updated 11 min read Gravity Forms Integrations A–Z
On this page
  1. Video walkthrough
  2. What You Get
  3. What It Does Not Do
  4. Requirements
  5. Quick Start
  6. The Bookly Customer Feed
  7. How the Customer Is Found
  8. Create, Update, Create Only, Update Only
  9. Names, Phone and Email
  10. Existing Details and Empty Values
  11. Birthday
  12. Customer Notes
  13. Linking a WordPress User
  14. Bookly Choices for Fields
  15. Entries, Merge Tags and Notifications
  16. AJAX, Multi-Page Forms and Conditions
  17. When Bookly Is Not Active
  18. Developer Hooks
  19. Troubleshooting
  20. Frequently Asked Questions
  21. Does it create bookings?
  22. Do I need Bookly Pro?
  23. Will a Bookly update break it?
  24. What happens when my license expires?
  25. Every enquiry, a Bookly customer

Video walkthrough

Gravity Forms Bookly Connector: Send Form Senders to the Free Bookly Customer List
Form senders join the free Bookly customer list Watch on YouTube

Bookly Connector joins Gravity Forms and the free Bookly plugin in two ways. A feed turns every enquiry into a customer in the Bookly customer list, or updates the customer that is already there. And select, radio, checkbox and multi select fields can list your Bookly services, staff and service categories, so the form always offers what Bookly offers. Bookings themselves stay in Bookly: the add-on does not create appointments.

A Request a visit form for a hair studio with name, email, phone, birthday and city, a Service drop-down that lists the Bookly services with their duration and price, a Stylist choice with two staff members and a notes box
The Service and Stylist choices come from Bookly each time the form is shown.

What You Get

  • A Bookly customer feed with create or update, create only and update only.
  • The customer is found the way Bookly finds it: the linked WordPress user, then the email address, then the phone number when there is no email.
  • Email, first and last name or one full name, phone, birthday and the address parts mapped to form fields.
  • Customer notes from a template with merge tags, added as a new line, replacing the notes, or written only when empty.
  • Replace existing details with the new values, or fill empty details only. An empty form value never clears anything.
  • Birthday from a Date field, or from a text field in the format you choose. A wrong date is left out, never guessed.
  • Optional link to a WordPress user, by email or the logged in user who sends the form.
  • Bookly services (with duration and price if you like), staff and categories as field choices, with filters.
  • Merge tags, entry meta, an entry note and a box on the entry screen with the Bookly customer number.
  • Feed conditions, AJAX forms and multi-page forms work as usual.

What It Does Not Do

Bookly (the free plugin) does not publish an add-on API. There are no documented hooks for a third party, no documented PHP functions and no REST routes. A booking in Bookly goes through its own availability check, notifications, calendar sync and payments, and none of that can be reached safely from outside. For that reason the add-on keeps to what can be done correctly: it saves customers through Bookly’s own customer record, and it reads services, staff and categories. It does not create appointments, change availability, or react to bookings made in Bookly. Bookly Pro and its add-ons are not needed and not used.

Requirements

  • Gravity Forms 2.9 or newer and PHP 7.4 or newer.
  • The free Bookly plugin from wordpress.org, active on the same site. The add-on is tested with Bookly 28.6 and checks what it needs on every request, so a Bookly version that moves something shows a clear message instead of an error.
  • A GravityExtra license key.

Quick Start

  1. Install and activate the add-on, then activate your license key in Forms → Settings → Bookly. The same screen shows the Bookly version found and how many services, staff members and categories it can see.
  2. Open the form and go to Settings → Bookly. Add a feed, give it a name and map at least the Email field.
  3. Map the name, phone, birthday and address fields you ask for, and write the customer notes if you want any.
  4. To fill a field from Bookly, open a select, radio, checkbox or multi select field in the editor and choose Bookly services, Bookly staff or Bookly service categories in the Bookly choices setting.
  5. Send the form once and open the entry. The Bookly customer box shows the customer number, and the customer is in Bookly → Customers.
The Bookly customer feed settings in Gravity Forms: the action, the form fields mapped to the Bookly customer details, the notes template, and the options for existing details and the WordPress user
One feed: choose what happens, map the fields and write the notes.

The Bookly Customer Feed

A feed is made in the form settings, in the Bookly tab, like any other Gravity Forms feed. A form can have several feeds, each with its own condition.

Setting What it does
When the form is sent Create the customer or update it when it exists (the default), create only, or update only.
Map fields Email, first name, last name, full name, phone, birthday, country, state or region, postcode, city, street, street number and additional address. Email is required in the form of the feed; a phone number alone is enough for the customer to be saved.
Birthday typed in a text field The format the visitor writes the birthday in: YYYY-MM-DD, DD/MM/YYYY, MM/DD/YYYY, DD-MM-YYYY or DD.MM.YYYY. A Date field needs no setting.
Customer notes Text for the notes of the Bookly customer. Merge tags are replaced.
When the customer already has notes Add the text on a new line (the default), replace the notes, or keep the notes and write only when they are empty.
Existing details Replace with the new values from the form (the default), or fill empty details only.
WordPress user Link the user with the same email address, link the logged in user who sends the form, or do not link.
Condition Send the customer to Bookly only if the entry matches your rule.

How the Customer Is Found

The add-on looks for the customer the way the Bookly booking form does, so a person is never split into two customers because they used a form and a booking page.

  1. If the feed links WordPress users and there is one, the Bookly customer linked to that user.
  2. The customer with the same email address. Capital letters do not matter.
  3. When the form has a phone number and the email was not found, a customer saved with that phone number and no email yet.
  4. When the form has no email at all, the customer with the same phone number.

A phone number that belongs to a customer who already has a different email address is not taken: that is a new customer. If the form has neither an email address nor a phone number that can be used, nothing is sent and the entry gets a note that says why.

Create, Update, Create Only, Update Only

Setting Customer found No customer found
Create or update Updated with the new values. Created.
Create only Left alone. The entry still records the customer number and the status exists. Created.
Update only Updated with the new values. Nothing is created. The entry gets a note.

Names, Phone and Email

Bookly keeps a first name, a last name and a full name. Map either the first and last name fields (a Gravity Forms Name field gives you both) or one full name field. With a first and a last name, Bookly builds the full name itself. With one full name, Bookly splits it at the first space, exactly as it does for its own forms, so Mary Ann Smith is saved as Mary and Ann Smith. If both are mapped, the first and last name win.

Emails are trimmed, saved in small letters and checked: an invalid email address is dropped, and a phone number can still identify the customer. Phone numbers keep digits, plus signs, brackets, dashes, dots and spaces. Control characters are removed from every value and values are cut at 255 characters.

Existing Details and Empty Values

When the customer exists, Replace with the new values writes every mapped value that the form has and that differs. Fill empty details only writes only the details that Bookly has empty and leaves the rest alone. In both cases a value that is empty in the form is never written, so a visitor who skips the phone field does not erase the phone number Bookly already has. If nothing differs, nothing is saved and the entry says the customer was found with nothing to change.

Birthday

Bookly stores a birthday as year, month and day. A Gravity Forms Date field is always understood, whatever date format the field shows. For a text field, choose the format in the feed. A value that is not a real date, a date before 1900 or a date in the future is left out. The add-on never guesses between day first and month first, because a wrong guess would put a wrong birthday in your customer list.

Customer Notes

The notes template can use any merge tag of the form. A template such as this one builds a note that tells your staff what the visitor wants:

Wants {Service:6:value} with {Stylist:7}.
{Notes:8}

A merge tag of a choice field prints the label of the choice. When the service label shows the duration and the price, add :value as in the example to print only the saved name. With Add the text on a new line, every new request adds a line under the old ones, and a line that is already there is not added twice. That makes sending the same entry again harmless. The text is cleaned of tags and cut at 1,000 characters.

Linking a WordPress User

Bookly can link a customer to a WordPress user so the customer sees their own bookings. The feed can link the user with the same email address, or the logged in user who sends the form. A user is linked only when the customer has none yet, and never when another Bookly customer already has that user, because Bookly expects one customer for each user.

Bookly Choices for Fields

Select, radio, checkbox and multi select fields get a Bookly choices setting in the form editor, under the choices. Turn it on and the choices are replaced with Bookly data every time the form is shown, checked and saved, so a new service or a renamed stylist is on the form straight away.

Setting What it does
Bookly choices Off, Bookly services, Bookly staff, or Bookly service categories.
Saved value The name (easy to read in entries and e-mails) or the Bookly number (it does not change when something is renamed).
Category (services) Only the services of one category, or all of them.
Duration and price (services) Add the duration and the price to the label, for example Haircut (30 min, $25.00). The price uses the format and currency of Bookly. The saved value stays the plain name.
Only staff who offer (staff) Only the staff members who offer one service, or all of them.
Include private ones Private services and private staff are left out unless you ask for them. Archived staff members are never listed.

Services are listed in the order of the Bookly services screen, staff in the order of the staff screen. Packages are not listed, because a package is not a thing a visitor books on a form. The choices you type in the editor stay as a fallback: they are used when Bookly is not active or has nothing to list. A placeholder of a select field is kept, a checkbox field gets the right number of inputs, and the form editor always shows and saves your own choices, never the Bookly list.

Entries, Merge Tags and Notifications

For every entry that reached Bookly, the add-on saves the Bookly customer number and a status (created, updated, unchanged or exists) as entry meta, adds a note to the entry, and shows a box on the entry screen with a link to the Bookly customers. Both values are available in the entry list, in filters and in exports.

<p>Your Bookly customer number: {bookly_customer_id}</p>
<p>What happened: {bookly_customer_status}</p>

The two merge tags can be used in notifications and confirmations. They are ready before notifications are sent, and they are empty when the entry did not reach Bookly.

The Bookly customers screen listing the customer that the form created, with name, phone and email
The customer is in the Bookly customer list, ready for the next booking.

AJAX, Multi-Page Forms and Conditions

The feed runs once, when the form is finally sent. AJAX forms and multi-page forms need nothing special, and Bookly checkboxes can sit on any page. Feed conditions use the usual Gravity Forms rules, so a form can send a customer to Bookly only when the visitor ticks a box.

When Bookly Is Not Active

The form still works. The fields show the choices you typed in the editor, the entry is saved, and the feed writes a note on the entry that says Bookly is not active and sends nothing. The settings screen and the feed screen show the same message. If your license key is not active, the choices are not replaced and the feed sends nothing either.

Developer Hooks

Two hooks are available. The first changes the cleaned customer values before they are saved. The keys are the Bookly customer columns, such as email, first_name, last_name, full_name, phone, birthday, city and notes_text.

// Add the source of the enquiry to every customer note before it is sent to Bookly.
add_filter( 'gfxbookly_customer_data', function ( $data, $feed, $entry, $form ) {
    if ( ! empty( $data['notes_text'] ) ) {
        $data['notes_text'] .= ' (form: ' . $form['title'] . ')';
    }
    return $data;
}, 10, 4 );

The second runs after a customer was saved or found:

// Run your own code after a customer was created, updated or found unchanged.
add_action( 'gfxbookly_customer_saved', function ( $result, $data, $feed, $entry, $form ) {
    // $result['status'] is created, updated or unchanged. $result['id'] is the Bookly customer number.
    // $result['changed'] lists the customer details that were written.
}, 10, 5 );

Troubleshooting

Problem Check
The feed says Bookly is not active Install and activate the free Bookly plugin from wordpress.org. The settings screen of the add-on shows the Bookly version it found.
The customer is not created Open the entry and read the notes. The usual reasons are an email address and phone number that are both empty or invalid, a feed set to update only, or a feed condition that did not match.
The birthday is missing The value was not a real date in the format of the feed. Choose the matching format, or use a Date field.
The choices show my typed list The Bookly choices setting is off, Bookly has nothing to list for that filter, the license key is not active, or Bookly is not active.

Frequently Asked Questions

Does it create bookings?

No. It sends enquiries to the Bookly customer list and fills form fields from Bookly. Bookings stay in Bookly, where availability, notifications and payments are handled.

Do I need Bookly Pro?

No. The add-on works with the free Bookly plugin and does not use anything from Bookly Pro or its add-ons.

Will a Bookly update break it?

The add-on checks the parts of Bookly it uses on every request and tells you if something has moved. It is tested with Bookly 28.6. Bookly does not promise a stable programming interface to other plugins, which is why the add-on keeps its use of Bookly small.

What happens when my license expires?

The choices stay as you typed them and the feed stops. Your forms, entries and the customers already in Bookly stay as they are.

Every enquiry, a Bookly customer

Send form entries to your Bookly customer list and fill fields with your services and staff.

Still need help?

Our support team answers tickets every day, usually within a few hours.

0
0
Your Cart
Your cart is emptyReturn to Shop
🔥 FREQUENTLY BOUGHT TOGETHER
Complete Combo & Save 40%!
ITEM IN YOUR CART
Gravity Forms Klaviyo Add-on
$39.00/yr
+
🎁 RECOMMENDED ADD-ON SAVE 40% OFF
Original Price: $39.00/yr
Bundle Special Price: $23.40/yr