Limiting which events display to registrants using URL parameters
Events
TargetX Events supports adding parameters to your Events Site URL to restrict which events are displayed. This can be used to pre-filter events based on data points such as location, category, type, and more. Below are instructions for adding parameters based on which data points will be used as filters.
Data Point |
Description |
Parameter to Add |
Example |
---|---|---|---|
Contact Specific Events (My Events) | Adding the Contact ID value to the end of your Events Site URL allows registrants to self-manage their registrations by viewing upcoming events or changing their registration. When the Contact ID is included in the URL, registrants may bypass the registration form because their information is already in the system. | #/myevents?cid={!Contact.Id} &k={!Contact.TargetX_Base__Access_Key__c} | https://targetx.secure.force.com/events#/myevents?cid=0012300000Ab1cD&k={!Contact.TargetX_Base__Access_Key__c} |
Featured Events | Adding a filter for featured events will display only those marked as "Featured" on the Organization Event record. | #/featured | https://targetx.secure.force.com/events#/featured |
Category | Filtering on the Category value will display Events that belong to a certain Category, as defined on the Organization Event record. | #/calendar?category=<<Category picklist value>> | https://targetx.secure.force.com/events#/calendar?category=Undergraduate+Admissions |
Type | Using a filter for type will allow you to restrict only those events with the given type value on the Organization Event record. | #/calendar?type=<<Type picklist value>> | https://yourschool.secure.force.com/events#/calendar?type=Open+House |
Multiple Types | To filter multiple types add a comma followed by the second item: | #/calendar?type=<<Type picklist value>>, <<Type picklist value>> | https://yourschool.secure.force.com/events#/calendar?type=Open+House, Reception |
Keyword | If you are using Keywords within events, you can add filters to restrict the search results to those that match the keyword in your URL. | #/calendar?keyword=<<Keyword picklist value>> | https://yourschool.secure.force.com/events#/calendar?keyword=Business+School |
Location | If you have created Location records and associated them with events, you can add the Location Filter Value to your URL and display only those events at that location: | #/calendar?location=<<Location Filter Value>> | https://yourschool.secure.force.com/events#/calendar?location=Las Vegas |
Using Multiple Filters
You can add multiple restrictions, such as Category and Type, by combining the values with an & symbol.
- EXAMPLE: https://yourschool.secure.force.com/events#/calendar?category=Undergraduate&type=Open+House
When adding your URL parameters, do not include spaces. Instead, use + or ?20 where spaces may be located in your values.