home > support > enquiry forms

Add an Enquiry form to your site

Launch “Enquiry Form Builder” (beta)

Enquiry forms can be used for general "Contact us", "Brochure request", "Newsletter signup" or other non product/date specific requests. Any type of request that you want to collect on your website and funnel into your workflow (assign to a staff member, set a followup date etc).

If instead you are looking to collect product and date specific requests you may want to consider using the Booking Engine, remember you can fully customise all the wording so that the customer knows they are just making an enquiry / quote request.

How it works

Just build a normal web form pointing at the TourCMS servers (action="https://live.tourcms.com/enquiry.php"), make sure you have entered your Account ID, Enquiry Key and Return URL and check the names of your fields match up with those listed below. Simple.

If you have an existing form you want to use then just make sure you have added the important fields and renamed any of your other fields to match the table below and you should be good to go.

All enquiry data is sent securely and encrypted via SSL.

Example form

<form method="post" action="https://live.tourcms.com/enquiry.php">

	<!-- Account settings -->
	<input name="tourcms_account_id" value="ACCOUNT_ID_GOES_HERE" type="hidden" />
	<input name="tourcms_enquiry_key" value="ENQUIRY_KEY_GOES_HERE" type="hidden" />
	<input name="tourcms_return_url" value="RETURN_URL_GOES_HERE" type="hidden" />
		
	<!-- Your fields -->
	<input name="enquiry_type" value="General%20Enquiry" type="hidden" />

	<label>Title
		<select name="title">
			<option value="Mr">Mr</option>
			<option value="Mrs">Mrs</option>
			<option value="Miss">Miss</option>
			<option value="Sir">Sir</option>
		</select>
	</label>

	<label>Firstname
		<input type="text" name="firstname" required="required" />
	</label>
	
	<label>Surname
		<input type="text" name="surname" required="required" />
	</label>

	<label>Details
		<textarea name="enquiry_detail"></textarea>
	</label>
	
	<input type="submit" value="submit" />
</form>

Important fields

Account ID and Enquiry Key

These tell TourCMS which account the enquiry should go to, to get yours just log into TourCMS then head to Configuration & setup > Enquiries. If you haven't set an Enquiry key before then you will need to set one before you can continue.

Return URL

This should be the full URL (link) that you want your customers to be taken to once their enquiry has been stored by TourCMS, it could contain a thankyou message perhaps.

Other important fields

You must ensure that you have at least one of enquiry_type, enquiry_category, enquiry_value, enquiry_outcome or enquiry_note on your form otherwise TourCMS will just create a new customer record and not an enquiry. The example above (and any form generated using our Enquiry form builder solve this by having enquiry_type set as a hidden field - this is also a good way to differentiate if you have multiple forms on your site.

Custom fields

Any field that you add to your form which TourCMS doesn't recognise will just be added to the end of the Enquiry "Details" box, so you can be creative with your form design and add any fields you wish.

Full field list

The full list of special fields are below, don't forget that any fields you add which TourCMS doesn't recognise will just get added to the enquiry "Details" in TourCMS - so you can collect all sorts of different information beyond what is listed below.

You might want to try using our Enquiry form builder to help you get the basics of your form set up.

FieldNotes
Commonly used fields
titleCustomer title e.g. Mr, Mrs etc
firstnameFirst name
surnameSurname
emailEmail address
tel_homeTel home / evening (other phone number fields are listed in the "Not so commonly used fields" section below, however if only taking one phone number then you might want to use this field)
addressAddress (can be multi-line)
cityCity
countyCounty / State
postcodePostcode / Zipcode
country2 digit country code (uppercase). Here's a HTML snippet containing all countries in a select box
perm_emailSet to 1 if the customer is opting in to email marketing, 0 for no marketing or leave blank / don't include to stick with your account defaults
enquiry_type"Brochure", "Tailor-made tour" request, "Contact us" form etc.
enquiry_detailThe main note for the enquiry (can be multi-line)
Less commonly used fields
enquiry_categorySub-category for type (e.g. if for a brochure, the brochure name)
enquiry_assigntoTourCMS staff user enquiry should be assigned to
enquiry_valueValue (e.g. financial value) (Doesn't have to be numeric)
enquiry_outcomeText description of the outcome of the enquiry
enquiry_followup_dateFollowup date (YYYY-MM-DD)
enquiry_noten/a
middlenameMiddle name (or initial)
nationality2 digit country code (uppercase). Here's a HTML snippet containing all countries in a select box
genderThe customers gender.
 
Leave blank / don't supply if gender is unknown, otherwise supply one of the following digits:
m = Male
f = Female
x = Indeterminate
dobDate of Birth (YYYY-MM-DD)
agecatAge category - 1 digit code (i-Infant, c-Child, a-Adult, s-Senior).
Alternatively if you know the customers DOB then pass that instead and TourCMS will calculate the agecat automatically.
pass_numPassport number
pass_issuePassport place of issue
pass_issue_datePassport issue date (YYYY-MM-DD)
pass_expiry_datePassport expiry date (YYYY-MM-DD)
wherehearWhere did the customer hear about us (doesn't have to be pre-configured)
faxFax number
tel_workTel work / day
tel_mobileTel mobile
tel_smsTel sms
contact_noteContact note (e.g. don't call before 8pm)
notesGeneral notes on the customer
dietDietary requirements
medicalMedical conditions
nok_nameEmergency contact name
nok_relationshipEmergency contact relationship
nok_telEmergency contact telephone number
nok_contactEmergency contact other note (can be multi-line)

© 2003-2012 Travel UCD Limited. All rights reserved. TourCMS® is a registered trademark of Travel UCD Limited, United Kingdom. View Privacy policy.

Free 1 hour webinar - An introduction to TourCMS, 31st May @ 3pm GMT / 4pm BST (UK). Check in your timezone and register »