Wazza
Set Select Option After createOptionForm
Hey everyone just looking for some advice, how could I set the value of the select option to the newly created on that I have created using the createOptionForm below is my select component
Any help would be great, thank you in advance
3 replies
Refresh RelationManager on dropdown
Hi all you smart individuals,
I have a question about relationshipmanagers, I have one in my system call teams and Im wanting to filter the Relationship Manager by the organisaiton ID that is passed in, however it would be nice iff I could update the relationshipmanager when I changhe the option in my drop down
Is there anyway I can emit an event to the relationshipmanager and refresh it
I did try this
With Disptach Event and on my relationshipmanager I have this
I think I might be doing this all wrong and might need some guidance, im pretty new to all of this and just trying to go off guides and ect so far...
Thanks in advance
2 replies
Checkbox list relationship data
Hey everyone this is such a great pacakge by the way its pretty impressive, im just having a little issue with my panel if anyone can give me some help.
I created a user panel where you can create, edit and ect like the docs said.
I have now wanted to add some logic into a checkboxlist so that a user can be added to teams that belong to an organisation
Below is my code
Forms\Components\CheckboxList::make('teams')
->options(fn(Forms\Get $get): Collection => $get('organisation_id') ?
Team::whereHas('organisations', function ($subquery) use ($get) {
$subquery->where('id', $get('organisation_id'));
})->pluck('name', 'id') :
collect([]))
Im cursious to know if there could be a better way then doing this ?
Only because im having an issue when I view the user its not showing the teams that they are now assigned to...
If you need more details on Model Relationships and ect I can send them if needed 😄
Thanks in advance
Wazza2 replies