{"record":{"id":"a39b00a8a1a360c9","repo":"filamentphp/filament","slug":"select-field-component-getstatepath-must-h","errorCode":null,"errorMessage":"Select field [{$component->getStatePath()}] must have a [createOptionUsing()] closure set.","messagePattern":"Select field \\[(.+?)\\] must have a \\[createOptionUsing\\(\\)\\] closure set\\.","errorType":"exception","errorClass":"LogicException","httpStatus":null,"severity":"error","filePath":"packages/forms/src/Components/Select.php","lineNumber":253,"sourceCode":"    {\n        if ($this->isDisabled()) {\n            return null;\n        }\n\n        if (! $this->hasCreateOptionActionFormSchema()) {\n            return null;\n        }\n\n        $action = Action::make($this->getCreateOptionActionName())\n            ->label(__('filament-forms::components.select.actions.create_option.label'))\n            ->schema(static function (Select $component, Schema $schema): array | Schema | null {\n                return $component->getCreateOptionActionForm($schema->model(\n                    $component->hasRelationship() ? $component->getRelationship()->getModel()::class : $component->getActionSchemaModel(),\n                ));\n            })\n            ->action(static function (Action $action, array $arguments, Select $component, array $data, Schema $schema): void {\n                if (! $component->getCreateOptionUsing()) {\n                    throw new LogicException(\"Select field [{$component->getStatePath()}] must have a [createOptionUsing()] closure set.\");\n                }\n\n                $createdOptionKey = $component->evaluate($component->getCreateOptionUsing(), [\n                    'data' => $data,\n                    'form' => $schema,\n                    'schema' => $schema,\n                ]);\n\n                $state = $component->isMultiple()\n                    ? [\n                        ...$component->getState(),\n                        $createdOptionKey,\n                    ]\n                    : $createdOptionKey;\n\n                $component->state($state);\n                $component->callAfterStateUpdated();\n","sourceCodeStart":235,"sourceCodeEnd":271,"githubUrl":"https://github.com/filamentphp/filament/blob/53483fa9340e4ec637985fe454ebb58afb92ea24/packages/forms/src/Components/Select.php#L235-L271","documentation":"Error \"Select field [{$component->getStatePath()}] must have a [createOptionUsing()] closure set.\" thrown in filamentphp/filament.","triggerScenarios":"Thrown at packages/forms/src/Components/Select.php:253 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":"53483fa9340e4ec637985fe454ebb58afb92ea24","analyzedAt":"2026-08-17T02:06:23.049Z","schemaVersion":2},"datasetVersion":"2026-08-17T04:17:16.089Z"}