use getOptionsFormComponents to adjust export query
Hi - i'm using getOptionsFormComponents to add a new dropdown to my exporter class, how can i pass the value of the dropdown to the modifyQuery() method to filter by results? In the docs it only seems to mention adding options() to closure functions but getOptionsFormComponents() is static
Solution:Jump to solution
Unfortunately you need to add it to the
modifyQueryUsing()
call on the exporter action wherever it's used, not the class itself. The form options are available via array $data
on that3 Replies
Solution
Unfortunately you need to add it to the
modifyQueryUsing()
call on the exporter action wherever it's used, not the class itself. The form options are available via array $data
on thatAwesome, thanks @Tetracyclic!