We are having an issue getting any custom save action to fire from a form in the CD environment on Sitecore 8.2 Update 6. There are no errors of any kind in the logs. This is not an issue in our local development instances or the CM. I suspect consequently this is a configuration issue particular to a CD environment (possibly something in the SwitchMasterToWeb.config). If anyone has had a similar issue I would love to hear about it!
Module-wise aside from WFFM we are using the Powershell module and SXA, but nothing else.
The basic signature of the class and custom save action are as follows:
public class CustomFormSubmit : ISaveAction
{
public CustomFormSubmit()
{
}
public void Execute(ID formId, AdaptedResultList adaptedFields, ActionCallContext actionCallContext = null, params object[] data)
{
Process(adaptedFields);
}
public FormSubmissionResponse Process(AdaptedResultList adaptedFields)
{
FormSubmissionResponse result = new FormSubmissionResponse
{
Data = "Success",
Status = "200"
};
try
{
}
catch(Exception e)
{
result.Data = "Error";
result.Status = "500";
result.Message = e.Message;
}
return result;
}
public ID ActionID { get; set; }
public string UniqueKey { get; set; }
public ActionType ActionType { get; private set; }
public ActionState QueryState(ActionQueryContext queryContext)
{
return ActionState.Enabled;
}
}