Dynamically Populate Batch Number Select Based on Product Selection in Filament
Hi everyone,
I’m trying to populate a Select field for batch_number based on the selected product_id in Filament. I want the batch_number select to be dynamically updated after a product is chosen. Here’s the code I’m working with:
The issue is that the batch_number select isn't being populated after the product is selected. What am I missing or doing wrong? How can I make the batch_number field update dynamically based on the product selection?
this is the value of the variable $optionsForBatchNumberSelect->toArray():
I’m trying to populate a Select field for batch_number based on the selected product_id in Filament. I want the batch_number select to be dynamically updated after a product is chosen. Here’s the code I’m working with:
The issue is that the batch_number select isn't being populated after the product is selected. What am I missing or doing wrong? How can I make the batch_number field update dynamically based on the product selection?
this is the value of the variable $optionsForBatchNumberSelect->toArray():

