{"record":{"id":"3b917f3b8c24563e","repo":"octobercms/october","slug":"field-name-was-not-found-in-the-form-definition","errorCode":null,"errorMessage":"Field {$name} was not found in the form definitions.","messagePattern":"Field (.+?) was not found in the form definitions\\.","errorType":"exception","errorClass":"SystemException","httpStatus":null,"severity":"error","filePath":"modules/backend/behaviors/formcontroller/HasRenderers.php","lineNumber":34,"sourceCode":"     * @param array $options (e.g. ['useContainer'=>false])\n     * @return string HTML markup\n     */\n    public function formRenderField($name, $options = [])\n    {\n        return $this->formWidget->renderField($name, $options);\n    }\n\n    /**\n     * formRefreshField is a view helper to render a field from AJAX based on their field names.\n     * @param array|string $names\n     */\n    public function formRefreshFields($names): array\n    {\n        $result = [];\n\n        foreach ((array) $names as $name) {\n            if (!$fieldObject = $this->formWidget->getField($name)) {\n                throw new SystemException(\"Field {$name} was not found in the form definitions.\");\n            }\n\n            $result['#' . $fieldObject->getId('group')] = $this->formRenderField($name, ['useContainer' => false]);\n        }\n\n        return $result;\n    }\n\n    /**\n     * formRenderPreview is a view helper to render the form in preview mode.\n     *\n     *     <?= $this->formRenderPreview() ?>\n     *\n     * @return string The form HTML markup.\n     */\n    public function formRenderPreview()\n    {\n        return $this->formWidget->render(['preview' => true]);","sourceCodeStart":16,"sourceCodeEnd":52,"githubUrl":"https://github.com/octobercms/october/blob/b608633a7e8922487d91a8161499020121c3b3bf/modules/backend/behaviors/formcontroller/HasRenderers.php#L16-L52","documentation":"Error \"Field {$name} was not found in the form definitions.\" thrown in octobercms/october.","triggerScenarios":"Thrown at modules/backend/behaviors/formcontroller/HasRenderers.php:34 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"b608633a7e8922487d91a8161499020121c3b3bf","analyzedAt":"2026-08-21T04:24:57.515Z","schemaVersion":2},"datasetVersion":"2026-08-21T11:28:35.574Z"}