This is a great contact form and everything is working wonderfully with the exception of one thing. Unless you fill all the fields out completely, you get a yellow screen of death when you hit submit. For instance, I go to the contact page, hit submit, and I get the following:
Server Error in '/' Application.
The model item passed into the dictionary is of type 'Umbraco.Web.Models.RenderModel', but this dictionary requires a model item of type 'Umbraco.Contact.Models.Form.ContactFormModel'.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.InvalidOperationException: The model item passed into the dictionary is of type 'Umbraco.Web.Models.RenderModel', but this dictionary requires a model item of type 'Umbraco.Contact.Models.Form.ContactFormModel'.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Form validation not working, getting error
This is a great contact form and everything is working wonderfully with the exception of one thing. Unless you fill all the fields out completely, you get a yellow screen of death when you hit submit. For instance, I go to the contact page, hit submit, and I get the following:
Hi Corey,
Can you elaborate more details, like which umbraco version do you use?
Thanks,
Delly
Happens on multiple sites, all running Umbraco 7.2.4.
The problem is that you have Document Type and action at the same name, just rename you action
I renamed the Document Type and Template (both the name and Alias) for my contact pages and all is woking now. Thank you, Yakov!
is working on a reply...