79588539

Date: 2025-04-23 11:51:17
Score: 1.5
Natty:
Report link

Detail matters.

In an attempt to keep this brief, I glossed over the fact MyFormView contains another view component. This is fine, but it happens to be a form, and it's rendering before `@using(Html.BeginUmbracoForm <MyApp.SecondaryFormController ...` is closed.

This results in a form within a form which is invalid HTML and just breaks things.

Refactoring so the form isn't rendered within another form fixes the issue.

Reasons:
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: monkeySeeMonkeyDo