'Sitecore.Forms.Mvc.Models.FormModel' vs. 'Sitecore.Mvc.Presentation.RenderingModel'

260 views Asked by At

I'm getting the following error when trying to add an MVC form to a placeholder in a View:

The model item passed into the dictionary is of type 'Sitecore.Forms.Mvc.Models.FormModel', but this dictionary requires a model item of type 'Sitecore.Mvc.Presentation.RenderingModel'.

The view that contains the placeholder is setting the model to RenderingModel, so is it possible to add that MVC form to that view or do I need to create a new view/layout that doesn't explicitly set the model?

0

There are 0 answers