|
|
Conditional display inside of a for-each based on map distance.
Started by: Neiger Design
in: Toolset Professional Support
Quick solution available
Problem:
I want to set up a View that shows only addresses within a search radius, but since addresses are a repeatable field, all markers display even when only one address matches the radius. My conditional check using [wpv-for-each] and [toolset-maps-distance-value] doesn’t return results.
Solution:
Addresses in a repeatable field can’t be filtered individually with [wpv-for-each]. Move them into a Repeatable Field Group (RFG) with a single address field. Then create a View of the RFG, add a Distance filter, and output markers with [wpv-map-marker]; only RFG rows within the radius will render markers.
Relevant Documentation:
https://toolset.com/course-lesson/creating-and-displaying-repeatable-field-groups/
https://toolset.com/course-lesson/displaying-a-simple-map/
|
|
1 |
4 |
1 year, 1 month ago
-
|
|
|
Conditional Check Boxes
Started by: norbertS-2
in: Toolset Professional Support
Quick solution available
Problem:
I created a multi-checkbox custom field and used wpv-conditional to show links per choice, but only the first selection outputs even when multiple boxes are checked.
Solution:
Check each checkbox option individually using the Types shortcode with the option index and compare to "1"; update conditionals to [types field='psy-werbung' option='N'][/types] == "1" for each option.
Relevant Documentation:
https://toolset.com/forums/topic/conditional-display-if-option-from-multi-checkbox-is-checked/
|
|
1 |
2 |
1 year, 1 month ago
-
|