Ascora Booking Forms

Fill Ascora custom fields from a booking

4 min read Ascora booking form

Custom Fields fills Ascora custom fields from the booking. Each field is written to the customer, the site or the job (the quote, on a quote form) after that record is made.

Before you start

  • Custom fields are a Business feature. On the Free plan the page shows a plan notice, its fields are switched off, and nothing is written. What you set is kept and used when you upgrade.
  • An Ascora credential has to be chosen on the Ascora Bookings settings, and its key needs Settings: Read, so the page can list your custom fields. Without a credential the page says "An Ascora credential is needed to read your custom fields." If the list cannot be read it says "The custom fields could not be read." with Ascora's reason, and offers Try again.
  • Create the custom field in Ascora first. Formpiece cannot make one.

Step by step

  1. Open your form from Forms. On the Settings tab, open Custom Fields under Written to Ascora.
  2. Under the record the field belongs to (Customer, Site and Job, or Quote on a quote form), click Add field.
  3. Under Ascora custom field, choose the field. Its type shows beside it, and Required in Ascora shows when Ascora requires it.
  4. Under Filled from, choose what supplies the value:
    • a Customer field, Site field or Job field of the form (only the ones the form asks)
    • a Question answer
    • A fixed value, which gives you a box to type the value into
  5. Click Save. The page says "Custom fields updated."

The Site section only appears when the form asks for a separate site. See Site Fields.

How it maps to Ascora

Ascora sets custom fields by name, on the request that updates the record:

Record Written with
Customer POST /Customers/Customer with the customer's id
Site POST /Customers/Customer with the site's id, since a site is a customer
Job POST /Jobs/Job with the job's id
Quote POST /Quotes/Quote with the quote's id

Ascora matches the field name and a list's options without regard to case. A value that matches none of a list's options is not saved, and a field Ascora no longer has is skipped. The row says "Ascora no longer has this field, so nothing is written to it." Fields that hold files are not filled.

Ascora field type What is sent
Yes or no (Ascora's CheckBox) true if the answer is yes, y, true, on, 1, checked or ticked, otherwise false
Multiple choice (Ascora's CheckBoxList) The picks, separated by commas
Every other type The value as it is, with several lines joined by commas

A mapping the booking has no value for is left out, so it never clears what Ascora holds.

Which record is written

  • A site mapping goes to the customer when the work is at the customer's own address, because no separate site was made.
  • A job mapping goes to the quote on a quote form, and a quote mapping goes to the job on a job form.
  • A customer that was found in Ascora, not made, is changed only when Update details when an existing customer is found is on under Customer Fields. A site that was found is never changed.
  • A booking made from an auth link writes the job's fields only. The customer and site are already in Ascora.

When it goes wrong

Save is off

The page says why beside the button:

  • "choose the Ascora field for each row under customer." A row has no field chosen.
  • "say what "Tenanted" is filled from." A row has a field but no source.

A value did not reach Ascora

  • The booking had no value for the source, for example an optional question left empty.
  • The value is not one of the options of a list field.
  • The key does not hold Settings: Read, Customers: Write or Jobs: Write, or the record was found and not changed.
  • The field was renamed or removed in Ascora. A custom field is matched by name, so a renamed one needs choosing again.

A custom field step that Ascora refuses does not fail the booking. The booking page lists it as not completed, and sending the booking again retries it.

A yes or no field is always false

The answer has to read as yes, y, true, on, 1, checked or ticked. A question of kind Text that the customer fills with "Sure" is sent as false. Use a List question with the choices Yes and No.

My change is not on the form

Saving publishes the form. If the page says the form could not be published, the change is saved and the form needs publishing again.