To enable users to register for events you can check the "Requires Registration" field on an Event in the CRM Web Client or in the Adxstudio Portal editing tool. The Event Page Template will display an event registration button when this "Requires Registration" has been set to true. If the user is not signed in, the button will display "Sign In to register for this event", otherwise it will default to "Register for this event".

If a product has been associated to the event then registration requires payment and the registration button on event page will take the user to the page associated with the Site Marker named “Event Registration - Payment Required”. If there is no product associated with the event then the registration button on event page will take the user to the page associated with the Site Marker named “Event Registration”.

If you wish to modify the code of the the Event Page Template, it can be found in the MasterPortal Visual Studio Web Application Project in the installation directory. The template path is ~/Areas/Events/Pages/Event.aspx

Our sample data for the Community Portal contains a Web Page “Event Registration” that is associated to the Site Marker named “Event Registration – Payment Required”. This Web Page has an associated Web Form named “Event Registration”. This Web Form consists of several steps that load Web Form User Controls that are part of the E-commerce implementation.

Event Registration Payment Web Form

The sample “Event Registration” Web Form consists of 3 Web Form Steps.

The Web Form record contains the follow properties:

Property Value
Name Event Registration
Authentication Required  Yes
Start New Session On Load  Yes
Multiple Records Per User Allowed Yes
Start Step Purchase Summary

The first Web Form Step record has the following properties:

Property Value
Name Purchase Summary
Web Form Event Registration
Type Load User Control
Target Entity Logical Name adx_eventregistration
Next Step Payment
User Control Path ~\Areas\Commerce\Controls\WebFormPurchaseSummary.ascx
Mode Edit
Source Type Query String
Primary Key Query String Parameter Name id
Primary Key Attribute Logical Name adx_eventregistrationid

This first step also has an associated Web Form Metadata record with the following properties:

Property Value
Web Form Step Purchase Summary
Type Purchase
Target Entity Relationship Name adx_event_eventregistration
Line Item Relationship Name adx_eventproduct_event
Line Item Product Attribute Name adx_product
Line Item Description Attribute Name adx_description
Line Item Required Attribute Name adx_isrequired
Line Item Order Attribute Name adx_displayorder

The second Web Form Step record has the following properties:

Property Value
Name Payment
Web Form Event Registration
Type Load User Control
Target Entity Logical Name adx_eventregistration
Next Step Payment Confirmation
User Control Path ~\Areas\Commerce\Controls\WebFormPayment.ascx
Mode Edit
Source Type Result From Previous Step

This second Web Form Step also has several associated Web Form Metadata records with the following properties:

Property Value
Web Form Step Payment
Type Purchase
Fulfill Order on Payment Yes
Create Invoice on Payment Yes
Target Entity Order Relationship Name adx_salesorder_eventregistration
Target Entity Invoice Relationship Name adx_invoice_eventregistration
Property Value
Web Form Step Payment
Type Attribute
Attribute Logical Name adx_registrationconfirmed
Set Value On Save Yes
Value true
Property Value
Web Form Step Payment
Type Attribute
Attribute Logical Name adx_registrationpaid
Set Value On Save Yes
Value true
Property Value
Web Form Step Payment
Type Attribute
Attribute Logical Name statuscode
Set Value On Save Yes
Value 756150000

The third and final Web Form Step record has the following properties:

Property Value
Name Payment Confirmation
Web Form Event Registration
Type Load User Control
Move Previous Permitted False
Target Entity Logical Name adx_eventregistration
User Control Path ~\Areas\Commerce\Controls\WebFormOrderConfirmation.ascx
Mode Edit
Source Type Result From Previous Step
Entity Source Step Purchase Summary