Boost recurring donations this giving season with the new upsell prompt!Learn How >>

Prepopulating Contact Information fields on an Event registration form through a URL parameter

updated

With the Events app, you can populate several fields in the Contact Information section of the reservation form for an Event by passing one or multiple values to the form through a URL that opens the event detail view. Once on the event detail view, when the user clicks the Attend This Event button, the fields in the Contact Information section will be populated.

Acceptable parameters

The following is a list of acceptable parameters which can be included in a URL for an Event. The %20 string referenced in various examples is the URL-encoded representation of a blank space, though blank spaces may be used as well:

  • rsvp_first_name: Populates the First Name field in the Contact Information section of the reservation form.
    Example: rsvp_last_name=Mickey
  • rsvp_last_name: Populates the Last Name field in the Contact Information section of the reservation form.
    Example: rsvp_first_name=Mouse
  • rsvp_email: Populates the Email field in the Contact Information section of the reservation form
    Example: rsvp_email=mickey.mouse@example.com
  • rsvp_phone: Populates the Phone field in the Contact Information section of the reservation form, if present
    Example: rsvp_phone=(202)%20555-1212
    Also acceptable: rsvp_phone=(202) 555-1212
  • rsvp_organization: Populates the Organization field in the Contact Information section of the reservation form, if present
    Example: rsvp_company=Disney
  • Salesforce API name of a custom Salesforce field: Populates a custom field from Salesforce in the Contact Information section of the reservation form, if present. The Salesforce API name is displayed in the Element column of the Custom Salesforce Fields section of the Reservation Info tab for an Event.
    Example: MemberId__c=ABC123

Adding parameters to the URL

To add a parameter to the URL, simply include a ? at the end of your Event URL followed by the parameter, an equals sign and its value:

http://www.myorg.org/events/my-great-event?rsvp_first_name=Mickey

To included multiple parameters in the URL, include a & between each:

http://www.myorg.org/events/my-great-event?rsvp_first_name=Mickey&rsvp_last_name=Mouse&rsvp_email=mickey.mouse@example.com&rsvp_phone=(202) 555-1212&rsvp_organization=Disney&MemberId_c=ABC123

Common uses

This functionality is helpful if you send personalized mass emails with recipient-specific links to your Event and wish the registration form to be prepopulated with their information.

Have more questions? Submit a request
Article is closed for comments.