I have a (hopefully) simple question about creating a custom submit action.
My template for the submit action is /sitecore/templates/System/Forms/Submit Action and I only need to use the FormSubmitContext parameter in the execute method.
If the method signature looks like this then the execute method is never hit. The constructor is hit.
protected override bool Execute(string value, FormSubmitContext formSubmitContext)
My class derives from SubmitActionBase like so
public class SendContactEmail : SubmitActionBase<string>
If I change like so:
public class SendContactEmail : SubmitActionBase<RedirectActionData>
and method
protected override bool Execute(RedirectActionData data, FormSubmitContext formSubmitContext)
And add a reference to the existing redirect action in the core database in the editor field then my execute method will be hit.
To simply my question the constructor IS being hit so I can see that sitecore is instantiating the class but the execute method is not being called possibly because the string parameter is not being passed