Skip to content

Instantly share code, notes, and snippets.

@PetersonDave
Created October 10, 2013 16:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PetersonDave/6921421 to your computer and use it in GitHub Desktop.
Save PetersonDave/6921421 to your computer and use it in GitHub Desktop.
WFFM format success message in custom Save Action.
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