Hide menu Last updated: Nov 02 2016
Area: Episerver Add-ons Applies to versions: 2 and higher

Implementing a custom Actor

Note: Episerver Forms is only supported by MVC-based websites and HTML5-compliant browsers.

Actor performs server-side action after a visitor submits a form

After a visitor submits a form, Forms.Core calls Actors to perform additional processing.

  • You can extend and plug in the Actor, and a third-party developer can implement it.
  • You can run Actors in a sync or async manner.
  • Each actor is provided with several data, including SubmissionData and the HttpRequest.
  • Sync-actor can have (and can modify) the HttpResponse, so Actor can modify response and cookie before sending back result to a visitor's browser.

By default, Episerver Forms has two Actors:

  • CallWebhookAfterSubmissionActor
  • SendEmailAfterSubmissionActor

Basically, third-party developer can implement his own Actor by:

  • Inheriting a PostSubmissionActorBase base class.
  • Starting from scratch with the IPostSubmissionActor interface and interface IUIPropertyCustomCollection for edit view user interface of configuring the Actor model

See a code sample about implementing a new Actor in open-source at https://github.com/episerver/EPiServer.Forms.Demo