Hi
v8 for forms doesn't allow parameterless constructor when inheritting from
UmbracoFormsController
class. So for instance if I want to override OnFormHandled method like I do in v7, I'll now need to provide Instances for several classes. Question here is where do I get these instances without newing up on each request?
Here is v8 constructor parameters:
public UmbracoFormsController(DistributedCache distributedCache, IFormStorage formStorage, IRecordStorage recordStorage, IRecordService recordService, FieldCollection fieldCollection, IFieldTypeStorage fieldTypeStorage, IFieldPreValueSourceService fieldPreValueSourceService, IFieldPreValueSourceTypeService fieldPreValueSourceTypeService, IUmbracoContextAccessor umbracoContextAccessor)
{
}
Does anyone know how to provide instances to these parameters. Are we using DI in umbraco v8 which does that for us?
I really like Umbraco forms and we are running umbraco cloud but this is becoming an issue as there are several custom umbracoformcontrollers we use for v7, we need to build for providing partial form submission. If you know other ways to partially submit forms using Umbraco forms in v8 please let me know. This is our major hold back on v8
By partial submission i mean, on each next button press data is saved to DB before Resuming to next page of the form.