Instead of requiring a number to be entered I would like the end user to have three options to choose from using a drop down selection. For example 5km, 10km and 15km.
How would I accomplish this?
It would require a new feature, as for example for Toolset Types Fields, where you can choose how to display the filter (Radio, Checkbox, Select, etc).
Currently, you will need custom code to create a Select Field and limit it's input, for example to 3 options, then pass the value chosen there to the URL query that Views generate when a custom search is run.
I filed the request here, you can upvote (and share) it:
https://toolset.com/feature-request/allow-to-create-a-limited-input-select-checkboxes-of-distance-search-value-in-toolset-maps-distance-searches/
https://toolset.com/feature-request/?wpv_post_search=Allow+to+create+a+limited+input+%28Select%2C+Checkboxes%29+of+Distance+Search+Value+in+Toolset+Maps+Distance+Searches&wpv-wpcf-plugins=Maps&wpv_view_count=686737&wpv_sort_orderby=post_date&wpv_sort_orderby_as=string
Hi Beda,
Thanks, I gave it a thumbs up 🙂
Can you elaborate a little more? Perhaps a link to related topics or (partial) workarounds / plugins / custom code / etc. Anything is welcome 🙂
Thanks in advance,
Bob
It would require some custom code. We do not provide Custom Code in the Toolset Support Forum, however, if you need assistance with the Code (mainly JS) you can contact a Contractor:
https://toolset.com/contractors/
You'd need to create a Custom Select with the values, and pass that to the URL parameter Views uses to generate the query (you can find that in the Query Filter section of the View, where the filter is added)
Hi Beda,
Thanks for your reply. I understand and will work with it 'as is' for now.
Great, then I am closing this topic here as resolved.
Thank you for understanding!