Select::createOptionForm fill?

I have an Action with 2 wizard steps. The first step contains a Select input with a createOptionForm from another resource. How can I fill in some values to this form based on the current record? Minimal example (with some details removed for brevity):
Forms\Components\Select::make('assigned_user_id')
->relationship('assignedUser', 'name')
->createOptionForm(function (Form $form) {
return UserResource::form($form)
->fill(['name' => 'testing']); // This is not working??
})
Forms\Components\Select::make('assigned_user_id')
->relationship('assignedUser', 'name')
->createOptionForm(function (Form $form) {
return UserResource::form($form)
->fill(['name' => 'testing']); // This is not working??
})
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server