ward
Filtering select options on-fly
I've been working on a feature where I have a select field and based on the first selection I chose, I want the form to dynamically filter out options I have.
Current concept works on filtering by first selection entity dimensions, for example, if I make a choice of 600x400, I want options to re-render with options that have the same size of 600x400.
I've tried to set Select form input as
live()
/reactive()
, added a relationships' modifyQueryUsing
closure to do the filtering which yields a correct query after dumping it and I have tried to set it in ->options(...
by using closure. But nothing really seems to work as options are not updating.
Tried alternate solution of disabling fields which don't fit the first pick criteria, but that only works when I re-open the select - the goal should be for options to be filtered out without me re-opening the select. Is it possible?5 replies