Displaying options base on selected value

1. Virtualmachine is a table with column virtual_machine_id / id 2. terminalVM is a table with a foreignKey of virtual_machine_id (they have one to many relationship) and column name 3. terminal_vm_id column inside trade_profile This is inside TradeProfileResource form builder So currently i have successfully display the Virtual Machine name . But i would like to display the VM TERMINAL based on selected Virtual Machine from the table TerminalVM where name is = virtual_machine_id . I've been looking around but couldn't succeed can anyone point me out.
5 Replies
alcmz
alcmzOP2y ago
At least this is what i tried out with a help from chatgpt too . I think it is wrong but hopefully u get an idea what i'm trying to achieve p/s i know chatgpt is not good with filament but i gives me the idea of how to code is written to achieve certain things
Patrick Boivin
Checkout "dependent selects" in the documentation : https://filamentphp.com/docs/2.x/forms/fields#dependant-selects
Filament
Fields - Form Builder - Filament
The elegant TALL stack form builder for Laravel artisans.
alcmz
alcmzOP2y ago
Got It , thanks sir @pboivin
alcmz
alcmzOP2y ago
alcmz
alcmzOP2y ago
got mine worked this way
Want results from more Discord servers?
Add your server