Propertybase Webforms lets you easily capture leads from your website. All you have to do is to embed a simple html form. You can apply your own styling, custom HTML markup and customize the form fields. You can capture Contacts, Requests, Listings and Favorites. To use Propertybase Webforms you have to enable Front Desk in the Propertybase Control Center:
Once activated you’ll see your form snippet ready to use on your website (this is unique to your Propertybase Org):
The simplest version of the form only contains the contact's first and last name. You’re free to add one or more Contact, Listing or Request fields. Examples:
Add a (custom) contact or listing field:
Place this between the <form> and </form> tags:
My Custom Contact Field:
<input type="text" name="contact[MyCustomApiFieldName__c]" />
My Custom Request Field:
<input type="text" name="request[MyCustomApiFieldName__c]" />
With the following snippet example a brand new listing record can be created from the web form. This can be useful if, for example, you have a form for referral agents and they are providing you a new listing.
My Listing Field:<br />
<input type="text" name="listing[pba__ListingStreet__c]" />
Associate the contact with existing listings
If you provide one or more listing references within your form, those will be linked to the created contact:
<input type="hidden" name="favorite_unique_ids" value="LISTING_ID_1" />
<input type="hidden" name="favorite_unique_ids" value="LISTING_ID_2" />
You also have to provide the api field name of the id field, e.g.:
|<input type=”hidden” name=”unique_id_field” value=”systemexternalid” />|
What objects are created:
- A duplicate check will be performed for the contact based on the Email field when provided. If not provided, a new contact will be created.
- If request fields are provided, a new request will be created.
- If listing fields are provided, a new linked listing will be created.
- If both, listing and request fields, are provided, both will be created.
After your visitor submits the form he is being redirected to a generic “Thank You”-page. You can instruct the forms to redirect to your custom page using the following snippet:
|<input type=”hidden” name=”success_url” value=”http://www.yourdomain.com/yoursuccesspage” />|
Validation must be handled on your end (website side), e.g. using Java Script to validate user input directly within the form. The field contact[LastName] must be provided in order to create a contact record in Propertybase. The validation could be, e.g. to check that First Name, Last Name and Email is present.
Example Form Attached
The attached for contains a full example of what the web form can be, when the required field behavior is added to the form to ensure leads fill out the information you need.