Created
October 10, 2013 16:35
-
-
Save PetersonDave/6921421 to your computer and use it in GitHub Desktop.
WFFM format success message in custom Save Action.
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
public class FormatSuccessMessage | |
{ | |
public void Process(SubmitSuccessArgs args) | |
{ | |
var script = FormSaveActionUtilities.GetGoogleAnalyticsScriptFromSaveAction(args); | |
Assert.IsNotNull((object)args, "args"); | |
if (args.Form == null) | |
return; | |
args.Result = args.Form.SuccessMessage + script; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment