Wix Bookings- Custom Booking Experience

I’m working on a custom booking flow solution and have added additional form fields to the default Booking Form. I need to process the booking via code and map data to these custom fields, but I’m unable to retrieve their form field IDs. Unfortunately, the additional fields don’t appear in the formFields property of the Booking/Services collection.

Has anyone encountered this before or know how to access the IDs of these custom fields? Any help would be greatly appreciated!

Product:
Wix Editor

What are you trying to achieve:
A Customized Booking Experiences-

Hi
On the services collections you’ll find only old additional-form-fields data.
For getting the most up to date form data you’ll need to call Forms GetForm api with the form id returned by the services-collection under service.bookingFormId

Velo code example:

import {forms} from "wix-forms-backend";

export const getForm = webMethod(
  async (request) => {
    const form = await forms.getForm(request);
    return form;
  }
);

Let us know if you need any help.

Best regards,
Shani from Wix Bookings Team

1 Like