Event Module Registration Form Builder
Event Module Registration Form Builder
Overview
The default functionality provided by the Sitefinity folks goes along way but what's the use of advertising events if you can't provide a customized registration form?
The events module form builder extends the functionality provided by Sitefinity to allow users to create their own customized mail forms. This functionality was adapted from another control, the form builder, that I have created to allow users to add forms throughout their content pages.
The base functionality allows you to add combo boxes, text boxes, labels, check boxes, radio buttons and text areas but it is very easy to add more control types. Once the form is created it will send the completed form to the specified email address using the default mail settings in your config file.
Want more functionality? Take a look at Basem Emara's Form Builder Module based on the Event Module Form Builder.
Download/Installation Instructions
Version
- Sitefinity Standard Edition 3.6 or greater.
- Sitefinity Community Edition 3.6 or greater.
Download
Download Event Module Form Builder
Download Event Module Form Builder - Community
Files in Package
- ~\App_Data\Configuration\Telerik.Sitefinity.Configuration.ControlsConfig.xml
- ~\Sitefinity\Admin\ControlTemplates\Events\EventsItemEdit.ascx
- ~\Sitefinity\Admin\ControlTemplates\Events\EventsItemNew.ascx
- ~\Sitefinity\Admin\ControlTemplates\Events\EventsItemPreview.ascx
- ~\Sitefinity\Admin\ControlTemplates\Events\App_LocalResources\EventsItemEdit.ascx.resx
- ~\Sitefinity\Admin\ControlTemplates\Events\App_LocalResources\EventsItemEdit.ascx.resx
- ~\Sitefinity\Admin\ControlTemplates\Events\App_LocalResources\EventsItemEdit.ascx.resx
- ~\Sitefinity\Admin\ControlTemplates\Events\Images\delete.gif
- ~\Sitefinity\Admin\ControlTemplates\Events\Images\down.gif
- ~\Sitefinity\Admin\ControlTemplates\Events\Images\up.gif
- ~\Sitefinity\ControlTemplates\Events\ContentViewSingleItemView.ascx
- ~\Sitefinity\UserControls\Custom\ModuleFormBuilder.ascx
- ~\Sitefinity\UserControls\Custom\ModuleFormBuilder.ascx.cs
- ~\Sitefinity\UserControls\Custom\ModuleFormBuilderView.ascx
- ~\Sitefinity\UserControls\Custom\ModuleFormBuilderView.ascx.cs
Installation
- Extract all of the files from the downloaded package into the root of your sitefinity site. Use caution while doing this as to not overwrite other customizations.
- Add the following new events metafield into your app.config file
<add key="Events.FormCode" valueType="LongText" visible="True" searchable="True" sortable="True" defaultValue=""/> - Add default smtp mail setting to your app.config file
<mailSettings>
<smtp from="online@yourdomain.ca">
<network host="mail.yourdomain.ca" userName="" password="" port="25"/>
</smtp>
</mailSettings> - When adding a new Events View control to your content point the "SingleItemTemplatePath" property on the "Advanced" tab under "Appearance" to the new template located at ~\Sitefinity\ControlTemplates\Events\ContentViewSingleItemView.ascx
- That's it.
Future Enhancements
I will likely continue to add to this control, some of the features I would like to add are as follows:
- Optional auto response email to the registrant.
- Optional captcha requirement.
- Other field types like an upload control or listbox.
- Better options for formatting the form.
- Additional validations for email address, phone, etc.