{"record":{"id":"2d713f809077bda4","repo":"octobercms/october","slug":"missing-configuration-for-pivot-form-in-relation","errorCode":null,"errorMessage":"Missing configuration for [pivot.form] in RelationController definition [{$this->field}].","messagePattern":"Missing configuration for \\[pivot\\.form\\] in RelationController definition \\[(.+?)\\]\\.","errorType":"exception","errorClass":"ApplicationException","httpStatus":null,"severity":"error","filePath":"modules/backend/behaviors/relationcontroller/HasPivotMode.php","lineNumber":122,"sourceCode":"    }\n\n    /**\n     * onRelationManageAddPivot adds multiple items using a single pivot form.\n     */\n    public function onRelationManageAddPivot()\n    {\n        return $this->onRelationManagePivotForm();\n    }\n\n    /**\n     * onRelationManagePivotForm\n     */\n    public function onRelationManagePivotForm()\n    {\n        $this->beforeAjax();\n\n        if (!$this->pivotWidget) {\n            throw new ApplicationException(\"Missing configuration for [pivot.form] in RelationController definition [{$this->field}].\");\n        }\n\n        $this->vars['foreignId'] = $this->foreignId ?: post('checked');\n\n        return $this->relationMakePartial('pivot_form');\n    }\n\n    /**\n     * onRelationManagePivotCreate\n     */\n    public function onRelationManagePivotCreate()\n    {\n        $this->beforeAjax();\n\n        // If the pivot model fails for some reason, abort the sync\n        Db::transaction(function () {\n            // Add the checked IDs to the pivot table\n            $foreignIds = (array) $this->foreignId;","sourceCodeStart":104,"sourceCodeEnd":140,"githubUrl":"https://github.com/octobercms/october/blob/b608633a7e8922487d91a8161499020121c3b3bf/modules/backend/behaviors/relationcontroller/HasPivotMode.php#L104-L140","documentation":"Error \"Missing configuration for [pivot.form] in RelationController definition [{$this->field}].\" thrown in octobercms/october.","triggerScenarios":"Thrown at modules/backend/behaviors/relationcontroller/HasPivotMode.php:122 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"}