Skip to main content

Custom Booking Forms

ProRequires Events Manager Pro. Compare plans

The free plugin's booking form asks for a name, email, phone number and comment. Events Manager Pro replaces it with forms you build yourself: add text fields, dropdowns, checkboxes, dates, file uploads and signatures, mark fields as required, and use a different form for different events.

All forms are edited on one screen, Events then Forms Editor, which has four parts:

SectionWhat it holds
Booking FormThe forms shown once per booking, under the ticket selection.
Attendee FormForms repeated for every space booked. See attendee forms.
User FieldsFields saved on the booker's user profile and reused on later bookings.
Common User Fields for GatewaysWhich of your fields hold the address details that payment gateways ask for.
VideoCustom booking and attendee forms2:54
Before you start

The Forms Editor is open to users who can list users, which by default means administrators. A new Pro installation starts with one booking form named Default containing Name, Email, Address, City/Town, State/County, Zip/Post Code, Country, Phone, Fax and Comment.

Edit a booking form​

  1. Go to Events then Forms Editor. The first box, Booking Form - General Information, shows the form you are editing in Selected Booking Form.

  2. Each row below it is one field. Change a field's Label, its Type, and tick Required if the booking can't be submitted without it.

  3. A field's options open when you choose its type, or when you click the gear icon on its row. They hold settings such as the choices of a dropdown or a tip shown beside the label. The options differ by type and are listed under Field types.

  4. To add a field, click Add booking field. A blank row appears at the bottom. Type a label, and the Field ID is filled in from it when you move to the next box.

  5. Drag a row by its handle to reorder fields. Click the trash icon to remove one.

  6. Click Save Form.

Each row is one field: label, field ID, type and whether it is required.

ColumnWhat it is
LabelThe text visitors see beside the field.
Field IDThe name the answer is stored under. It is used in placeholders such as #_BOOKINGFORMCUSTOM{field_id} and in exports.
TypeThe kind of field. See Field types.
RequiredWhether the visitor must fill it in.
Don't change a Field ID once bookings exist

Answers are stored by Field ID. If you rename an ID, or delete a field and re-create it under a different ID, existing bookings stop showing their answer for that field. Change the label instead.

A booking form must keep an email field (the type E-mail (required)), and should keep a name field, so that guests can be registered and receive their booking emails.

An example: ask for a dietary requirement​

Click Add booking field, type Dietary requirements as the label, and choose the type select. Open the field's options and enter the choices in Options, one per line: None, Vegetarian, Vegan, Gluten free. A new select field starts with the Default Text Select ..., which you can change, for example to Please choose. Tick Required: a visitor who leaves it on the default text is then asked to fill it in. Save the form, and the dropdown appears on every event that uses this form.

The options panel of a select field.

Field types​

The Type list has three groups.

Customizable fields​

These store their answer with the booking.

TypeWhat the visitor getsOptions
textA one-line text box.Tip Text, Regex, Error Message
textareaA multi-line text box, for comments or longer answers.Tip Text, Regex, Error Message
htmlNo input. Shows your own text or HTML in the form, for a heading or instructions. The label is only used in the editor.Content
checkboxOne checkbox, saved as Yes or No. Make it required for "I agree to the terms".Checked by default?, Tip Text, Error Message
checkboxesSeveral checkboxes, any number of which can be ticked.Options, Tip Text, Error Message
radioSeveral choices, one of which can be picked.Options, Tip Text, Error Message
selectA dropdown with one choice.Options, Use Default?, Default Text, Tip Text, Error Message
multiselectA list where several choices can be selected.Options, Use Default?, Default Text, Tip Text, Error Message
countryA dropdown of countries.Tip Text, Error Message
dateA date picker, or two for a date range.Date Range?, Separator, Tip Text, and an error message for each problem
timeA time picker, or two for a time range.Time Range?, Separator, Tip Text, and an error message for each problem
phoneA phone number field with a country selector, checked for a valid number. Listed only when Enable Phone Numbers? is on in the Events Manager general settings.Tip Text, Error Message
captchaA Google reCAPTCHA challenge to stop automated submissions. Always required. Booking forms only.Site Key, Secret Key, Error Message
uploadA file upload. See upload fields.File type, size and count limits
signatureA drawn or typed signature on a waiver or consent text. See signature fields.Consent text, signing mode and more

The shared options work like this:

OptionWhat it does
Tip TextShows a question mark beside the label that reveals this text.
OptionsThe available choices, one per line.
Use Default?Pre-selects the first choice.
Default TextA first entry that is not a real answer, such as Select .... A required field can't be submitted with it selected.
RegexA regular expression the answer must match. ^[0-9]+$ accepts digits only.
Error MessageReplaces the standard message shown when the field is required and empty, or when the answer fails the regex.

Registration fields​

These are the fields of a WordPress user account. They are shown to guests so that an account can be created for them. Logged-in visitors see them too, filled in from their profile, unless you change that under What logged-in visitors see.

TypeNotes
NameA single full-name field. The text before the first space becomes the first name and the rest the last name.
First Name, Last NameUse these two in place of Name, not together with it.
E-mail (required)Must be on every booking form.
Username LoginLets the visitor choose a username. Without it, one is generated for them.
PasswordLets the visitor set their own password.
Website, AIM, Yahoo IM, Jabber / Google Talk, Biographical InfoThe other standard WordPress profile fields.

Custom registration fields​

These are the user fields you have created, such as the address and phone fields. They appear in the Type list under their own labels.

User fields​

A user field is stored on the person's WordPress profile instead of on one booking. The visitor enters it the first time they book, and it is on file for every later booking. Use user fields for things that belong to the person (address, phone, company, membership number) and customizable fields for things that belong to the booking (dietary needs for this dinner, T-shirt size for this race).

  1. In Events then Forms Editor, scroll to the User Fields box.

  2. Add and edit fields exactly as in a booking form. The same customizable types are available.

  3. Click Save Form.

  4. Scroll back up to your booking form, click Add booking field, and choose the new field in the Type list under Custom Registration Fields. A user field isn't asked for until you add it to a form.

User field values are shown, and can be edited, on each user's profile in wp-admin under the heading Further Information. They are included in WordPress's personal data export.

Address fields for payment gateways​

Payment gateways and invoices need to know which of your fields is the street address, which is the city, and so on, whatever you have named them. The Common User Fields for Gateways box at the bottom of the Forms Editor makes that link.

Each gateway field is linked to one of your user fields.

For each of Address, Address Line 2, City, State/County, Zip/Post Code, Country, Phone, Fax and Company, choose the user field that holds it, or leave none selected. The customer's name and email need no link: they come from the name fields of the form and the account's email address.

A new installation creates address user fields and links them for you, so in most cases there is nothing to do. Check this box when:

  • you delete or replace one of the default address fields;
  • a gateway reports a missing billing address, or sends customers to a payment page with the address blank;
  • the customer block on PDF invoices is empty.

Linking a field here does not put it on your booking form. If a gateway needs the address, make sure the address fields are on the form and required.

What logged-in visitors see​

With Pro installed, logged-in visitors see the registration and user fields filled in from their profile, and can edit them. To change that, go to Events then Settings then Bookings then PRO Booking Form Options:

SettingWhat it does
Show profile fields to logged in users?Shows the registration and user fields to logged-in visitors, filled in from their profile. Yes by default. Set it to No to hide them.
Show username profile fields?Also shows their username. It can't be edited.
Show name profile fields?Also shows their name.
Show email profile fields?Also shows their email address.
Make profile fields editable?Lets them change the values while booking, which updates their profile. Yes by default. When off, the fields are shown for reference only.

Create more forms and set the default​

You can keep several booking forms, for example a short one for free events and a longer one for paid courses.

ButtonWhat it does
Add NewCreates a new form from a name you type, and opens it for editing.
DuplicateCopies the form you are editing, so you can adjust a variant.
RenameChanges the form's name.
Make DefaultMakes the selected form the default. Every event that has not chosen a form uses it from then on.
DeleteDeletes the form. Events that used it fall back to the default form. The default form can't be deleted.

Switch between forms with Selected Booking Form. The default one is marked.

Choose the form for an event​

  1. Edit the event and scroll to the Bookings/Registration box.

  2. Under Booking Form, choose a form in Selected Booking Form. [ Default ] follows whatever the site default is at the time.

  3. If attendee forms are enabled, choose one in Selected Attendee Form as well, or [ None ] to ask for no attendee details on this event.

  4. Save the event.

An event uses the default forms unless you choose others here.

On a recurring event the choice applies to every date in the series. In Multiple Bookings Mode an extra form is used at checkout.

See and use the answers​

  • On a booking. Open a booking in Events then Bookings to see and edit the answers. User fields are shown with the person's details.
  • In bookings tables and exports. Every form field can be added as a column from the table's settings. See Manage bookings.
  • In emails. #_BOOKINGFORMCUSTOM{field_id} outputs one answer, with the Field ID between the braces. #_BOOKINGFORMCUSTOMREG{field_id} does the same for a user field. #_BOOKINGFORMCUSTOMFIELDS lists every field of the form with its answer. See booking email templates.

Troubleshooting​

A field I added doesn't show on the booking form

Check that you clicked Save Form, and that the event uses the form you edited (see Choose the form for an event). If it is a registration or user field and Show profile fields to logged in users? is set to No, it is hidden while you are logged in: view the event in a private browser window.

Old bookings lost their answers after I edited the form

The field's Field ID changed. Set it back to the original ID and save.