-
-
Save Nicholas-Westby/0251c8ec71b28703f9458ea276412f1b to your computer and use it in GitHub Desktop.
Listens for form submission events in Formulate.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <summary> | |
/// Handles application startup. | |
/// </summary> | |
public class AppStart : ApplicationEventHandler | |
{ | |
protected override void ApplicationStarting(UmbracoApplicationBase umbracoApplication, | |
ApplicationContext applicationContext) | |
{ | |
// Initialize Formulate events. | |
formulate.api.Submissions.Submitting += SetEmailByPage; | |
// Boilerplate. | |
base.ApplicationStarting(umbracoApplication, applicationContext); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment