Skip Navigation

[Resolved] Change input behaviour of map distance

This thread is resolved. Here is a description of the problem and solution.

Problem:
I want to suggest a new feature for Toolset. Where and how can I do that? How to add my voice to the request(s) discussed in the below thread?

Solution:
You can suggest, and upvote (add your voice to, request as well) new features for Toolset here:
https://toolset.com/home/contact-us/suggest-a-new-feature-for-toolset/

Toolset's Product Management receives a notification and accordingly evaluates and plans features for Toolset.

This support ticket is created 6 years, 1 month ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- - 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00
- - - - - - -

Supporter timezone: Asia/Ho_Chi_Minh (GMT+07:00)

This topic contains 5 replies, has 2 voices.

Last updated by Beda 6 years ago.

Assisted by: Beda.

Author
Posts
#1160666

Bob

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?

#1161399

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

#1161465

Bob

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

#1163543

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)

#1164825

Bob

Hi Beda,

Thanks for your reply. I understand and will work with it 'as is' for now.

#1165392

Great, then I am closing this topic here as resolved.

Thank you for understanding!