|
Filter: Label field missing “for”
Started by: Sammut
in: Types Community Support
Quick solution available
Problem: I would like to replace the standard checkboxes in my View filter with images. In order to do this, I need to apply a class to the checkbox's parent label that determines whether or not to show the checkmark in the checkbox. I am using AJAX to update my View results whenever an input is changed.
Solution:
Use some jQuery to modify the parent element whenever a checkbox is changed. Run the same jQuery when the page loads to ensure the checkboxes are set correctly before anything changes. Use the front-end events feature to listen for search results updates.
Relevant Documentation:
https://toolset.com/documentation/user-guides/front-page-filters/advanced-settings-custom-search/
|
|
2 |
21 |
7 years, 7 months ago
Sammut
|