Accessing variables from within createOptionForm

Hope anyone can help me, the question boils down to: Is it possible to receive form values from within an createOptionForm? I am running some tests but I'm afraid it isn't possible..? If I try to retrieve a value from outside the optionform like this: Forms\Components\Select::make('some_id') [etc] ->createOptionForm([ Forms\Components\Select::make('message') ->live(onBlur: true) ->afterStateUpdated(function (Get $get, Set $set) { $set(target_id', $get('some_id')); }) Forms\Components\Select::make('target_id') [etc] It also doesn't receive any values. It works fine if I try to retrieve for example the message and transfer that to the target_id. I'm guessing this is because only the form is loaded with livewire.. Is this just not possible? Or are there other solutions?
0 Replies
No replies yetBe the first to reply to this messageJoin