{"record":{"id":"18c313abe53584f2","repo":"filamentphp/filament","slug":"select-field-component-getstatepath-must-h-18c313","errorCode":null,"errorMessage":"Select field [{$component->getStatePath()}] must have a [updateOptionUsing()] closure set.","messagePattern":"Select field \\[(.+?)\\] must have a \\[updateOptionUsing\\(\\)\\] closure set\\.","errorType":"exception","errorClass":"LogicException","httpStatus":null,"severity":"error","filePath":"packages/forms/src/Components/Select.php","lineNumber":408,"sourceCode":"        if ($this->isMultiple()) {\n            return null;\n        }\n\n        if (! $this->hasEditOptionActionFormSchema()) {\n            return null;\n        }\n\n        $action = Action::make($this->getEditOptionActionName())\n            ->label(__('filament-forms::components.select.actions.edit_option.label'))\n            ->schema(static function (Select $component, Schema $schema): array | Schema | null {\n                return $component->getEditOptionActionForm(\n                    $schema->model($component->getSelectedRecord()),\n                );\n            })\n            ->fillForm(static fn (Select $component): ?array => $component->getEditOptionActionFormData())\n            ->action(static function (Action $action, array $arguments, Select $component, array $data, Schema $schema): void {\n                if (! $component->getUpdateOptionUsing()) {\n                    throw new LogicException(\"Select field [{$component->getStatePath()}] must have a [updateOptionUsing()] closure set.\");\n                }\n\n                $component->evaluate($component->getUpdateOptionUsing(), [\n                    'data' => $data,\n                    'form' => $schema,\n                    'schema' => $schema,\n                ]);\n\n                $component->refreshSelectedOptionLabel();\n            })\n            ->color('gray')\n            ->icon(FilamentIcon::resolve(FormsIconAlias::COMPONENTS_SELECT_ACTIONS_EDIT_OPTION) ?? Heroicon::PencilSquare)\n            ->iconButton()\n            ->modalHeading($this->getEditOptionModalHeading() ?? __('filament-forms::components.select.actions.edit_option.modal.heading'))\n            ->modalSubmitActionLabel(__('filament-forms::components.select.actions.edit_option.modal.actions.save.label'))\n            ->visible(fn (): bool => filled($this->getState()));\n\n        if ($this->modifyManageOptionActionsUsing) {","sourceCodeStart":390,"sourceCodeEnd":426,"githubUrl":"https://github.com/filamentphp/filament/blob/53483fa9340e4ec637985fe454ebb58afb92ea24/packages/forms/src/Components/Select.php#L390-L426","documentation":"Error \"Select field [{$component->getStatePath()}] must have a [updateOptionUsing()] closure set.\" thrown in filamentphp/filament.","triggerScenarios":"Thrown at packages/forms/src/Components/Select.php:408 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"}