Base interface and classes for creating save actions

Version: 9.0

When you create a custom save action, you must create a class that inherits the Sitecore.Form.Submit.ISaveAction interface. This interface contains the Execute method that must be implemented in your new class, because it is called by all save actions assigned to a web form. Use this method to implement a save action logic.

The Execute method accepts three arguments:

  • ID formid – the ID of a web form item that the action is assigned to.

  • AdaptedResultList fields – a list of the AdaptedResult classes. Each item in the list provides information about a web form field that is submitted (Value, FieldID, FieldName, Parameters).

  • params object[] data – the first element of the array that contains an analytics session ID.

The Web Forms for Marketers module provides two classes that you can inherit a custom class from:

Do you have some feedback for us?

If you have suggestions for improving this article,