filter form - reset filter A when filter B is some value
I'm trying to reset a filter when another filter is set to a specific value.
so when
has_lab_report
is set back to false
or show all
, the results
filter should be invisible again (which happens), but the filter is still active with the previously selected options (positive/negative etc)
How can i reset the results
filter when has_lab_reports
is not Yes
?
1 Reply
Solution:
on the first select "has_lab_report", add this:
(also changed the
'true'
to an actual boolean true
, not sure why i had that in the first place lol)