How to create an Event Registration Form

From Sense/Net Wiki
Jump to: navigation, search
  •  
  •  
  •  
  •  
  • 100%
  • 6.0
  • Enterprise
  • Community
  • Planned

Overview

Event Registration Form

Event registration forms provide possibility to register users and their guests to events and to limit the maximum number of registered guests. Event registration forms consist of field elements, contain a save button and can give a message to the users after filling it out.

Event registration forms are Content Types like Articles or Folders, so you can add a new one as you add other types, or you can list the submitted ones.

Create your own event registration form

1. Enable Event Registration Form content type

Enable Event Registration Form content type in the workspace where you would like to create the form:

Enable Event Registration Form content type

2. Create the Event Registration Form

Create a new Event Registration Form and set its properties.

3. Bind the Event Registration Form and the Calendar Event

An Event Registration Form always belongs to an existing Calendar Event. The two contents can be linked together from the Calendar Event. In order to do so, you should edit the Calendar Events related properties, that are the following:

  • RequiresRegistration
  • RegistrationForm: The Event Registration Form content that will be bound to the Calendar Event
  • OwnerEmail: The list of email addresses to where a notification message containing submitted values are sent after submitting the form. The addresses should be separated by ";", "," or new line.
  • NotificationMode
  • EmailTemplate: The template of the email message sent to the administrators. By default the template of notification email sent to the submitter is the same as the one sent to the recipients given in the email list above. Form content can be inserted with the "{0}" string.
  • EmailTemplateSubmitter: The template of the email message sent to the submitter. By default the template of notification email sent to the submitter is the same as the one sent to the recipients given in the email list above. Form content can be inserted with the "{0}" string.
  • EmailFrom: This address is displayed in the "From" field of the notification email sen to the admin.
  • EmailFromSubmitter: This address is displayed in the "From" field of the user notification email sent to submitters. Default is "mailerservice@example.com".
  • EmailField: The name of the field specified among ContentList fields containing the submitter's email address. Ie.: "#Email" or "#SubmitterEmail".
  • MaxParticipants: The maximum number of participants which can apply for the event.
  • NumParticipants: Current number of participants

If you use the predefined views of the Calendar Event content type, the above mentioned properties will not appear in any view by default. In order to be able to edit them, the .ascx files should be modified under /Root/Global/contentviews/CalendarEvent. Remove the needed properties from the list of ExcludedFields.

Set Requires registration to true and link the related Registration form


4. Displaying the Form

After you costumized your Event Registration Form, you should display it in a Form Portlet. Create a new Form Portlet on your page and set at least two properties:

  • Set Form path to the path of your event registration form
  • Set View to /Root/Global/contentviews/InlineEdit.ascx
Form portlet

If you want to display the list of submitted event registrations, add a new Content List Portlet and bind it to your event registration form.

List of submitted forms

Related links

References

There are no external references for this article.