Issue #2797721 by jp.stacey: Custom form handler's submitForm not called when using example in documentation (cherry picked from commit 85a227f7)