Choose what your Ascora booking form asks about the customer
Customer Fields sets which contact details the form collects about the customer. The answers become an Ascora customer. The customer's street address is on Customer Address Fields, and goes to the same Ascora customer.
Before you start
- Every field is available on the Free plan. The Existing customer check is a Business feature. On the Free plan the section shows "Customer duplicate validation is part of the Business plan.", the checkboxes are switched off, and every booking makes a new customer. What you set is kept and used when you upgrade.
- First name is always on and always mandatory, so it has no switch. Ascora names a customer with no company after the contact.
- If the form takes card payments, Email address has to stay on and mandatory. Saving otherwise says "Customer email has to stay on and required while this form takes payments. Switch payments off on the Payments page first." A form that sends Ascora's own payment link instead of taking a card does not need it.
Step by step
- Open your form from Forms. On the Settings tab, open Customer Fields under Form display.
- Switch each field on or off with the toggle on its row.
- Type a Custom Label to change the words the customer sees. Leave it empty to use the default shown in the box.
- Tick Mandatory field to make an answer required. A field that is switched off cannot be mandatory.
- Click Save. The page says "Customer fields updated."
How it maps to Ascora
The booking makes the customer with POST /Customers/Customer.
| Field | Goes to | Starts |
|---|---|---|
| First name | contactFirstName | On, mandatory, locked |
| Last name | contactLastName | On, mandatory |
| Company name | companyName | Off |
| Email address | emailAddress | On, mandatory |
| Phone number | phoneNumber | On, mandatory |
| Mobile | mobileNumber | Off |
When a company name is given it becomes the customer's name in Ascora. Only the values the customer typed are sent, so a blank never writes an empty value. The customer type and lead source come from Booking Job Type.
Existing customer check
Ascora can search customers by email address and phone number, so a returning customer can be booked under the customer they already are. Only billing customers are searched, because a site is somebody else's customer record.
- Use an existing Ascora customer when the email address, then the phone number, matches. Formpiece looks for the email first. If there is no email match it compares the phone number and the mobile by their digits, so +61 400 000 000 and 0400 000 000 count as the same. The booking goes on the customer it finds.
- Update details when an existing customer is found. What the customer typed is written onto the Ascora customer. A value left blank never replaces one in Ascora. It is only used when the check is on and Ignore checks for existing customers is off.
- Ignore checks for existing customers. A new Ascora customer is made for every booking.
When a customer is found at a different street address and Update details is off, the address the customer typed is booked as a site of that customer, so the work goes where it was asked for. The customer's own address in Ascora is left alone. See Site Fields.
When it goes wrong
A returning customer got a second customer
The check only matches on an email address or phone number. A different email, a number typed with a typo, or a customer who is stored in Ascora as a site rather than a billing customer will not match. The check is also off on the Free plan, and when Ignore checks for existing customers is ticked.
A field I switched on is not on the form
The form carries a copy of these settings. Saving publishes the form. If the page says the form could not be published, the change is saved and the form needs publishing again.