Forms 5.1.0 JS Capitalization Mismatch


Forms 5.1.0 javascript expects camel case capitalization on the return properties, but the return type SubmitActionResult and the Json call do not specifically specify camel case in the json serialization. Has anyone gotten ajax submissions to work without setting the global json version settings to camel case?

Jul 15, 2022 1:53

We ended up setting the global setting to camel case during startup, and overriding it in the Json call.

services.Configure<JsonOptions>(o =>
        o.JsonSerializerOptions.PropertyNamingPolicy = JsonNamingPolicy.CamelCase;

I don't think this is the best fix though. The forms DataSubmitControl Json call should specify camel case since the Javascript included with the nuget package expects it.

Jul 21, 2022 3:15
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.