[Solved] Live Umbraco Forms issue
# help-with-umbraco
c
V13.3.0 + UF V13.1.2 All forms submit successfully on local dev machine. Site changes are deployed via a GitHub action. Forms are put live via uSync.Forms. When submitting forms on the Production environment all of the forms situated in a UF folder fail immediately with :-
InvalidOperationException: The 'Microsoft.AspNetCore.Mvc.ViewFeatures.Infrastructure.DefaultTempDataSerializer' cannot serialize an object of type 'Umbraco.Forms.Web.Models.FormViewModel'.
I have no idea why. The error message seems it would apply to any and all forms. The forms in question all have a "Go to page" set on their "Message on submit" workflows. The page they "Go to" exists on live and shows correctly on the live forms' workflow settings. All forms in the forms root submit fine. All the appropriate files are on live, i.e. themes, email forms, etc. Please advise.
Well finally got to the bottom of it and it wasn't what I expected at all. The forms had been put together by the client and I noticed the "GDPR" field that was just a checkbox was showing locally but not on live. Then it occurred to me that there wasn't a "dataConsent" field. So going on a hunch I changed the "GDPR" field over to a "dataConsent" answer and pushed that up. It showed up on live and worked! I wasn't aware that it was a technical (as opposed to political) requirement for a form to have a "dataConsent" field, but maybe it's tied in with the back end working out whether or not to record the submitted data (along with the form setting of course).
20 Views