A first attempt at mocking up the actual JavaScript behavior for correct custom form validation handling
Not mergeable yet, just pushing this as a proof of concept. This should really be rolled into a proper plugin/JavaScript behavior.
x-ref #28414