CMS Development

EShumely
Participant | Diamond Partner
Participant | Diamond Partner

Form with Dropdown/multi check boxes Geo's

SOLVE

Hi there, 

 

I want to have the country property and 

I want it to show as DropDown (there are a lot of countries and having them all on the form is distracting) 

however, I do want to have the functionality of multiple checkboxes because the intended goal of this form is to provide a targeting option. 

 

any suggestion as to how I can make it happen? 

0 Upvotes
1 Accepted solution
MatthewShepherd
Solution
Key Advisor

Form with Dropdown/multi check boxes Geo's

SOLVE

Hi @EShumely 

Thanks for the clarification, understood.

This isn't possible natively at the moment but there are a number of ideas in the forum that you could upvote to express your interest in this being looked at in the future  e.g. https://community.hubspot.com/t5/HubSpot-Ideas/Multi-Select-Drop-Down-Field-for-Forms/idi-p/312673 

In the meantime, I found a few forum posts with suggestions on how to potentially achieve this with Javascript and CSS or HubDB and HubL:

https://community.hubspot.com/t5/Blog-Website-Page-Publishing/Multiselect-Dropdown-Field/m-p/339184/...

https://community.hubspot.com/t5/CMS-Development/HUBDB-multiple-selection-option-in-dropdown-in-cust... 




Matthew Shepherd

Freelance HubSpot Consultant
CRM Consultant | SEO Specialist

Did my post help answer your query?Help the community by marking it as a solution.

View solution in original post

6 Replies 6
EShumely
Participant | Diamond Partner
Participant | Diamond Partner

Form with Dropdown/multi check boxes Geo's

SOLVE

Thanks Matthew, Im unfamiliar with HubDB but it seems like the best solution for now. 

webdew
Guide | Diamond Partner
Guide | Diamond Partner

Form with Dropdown/multi check boxes Geo's

SOLVE

Hi @EShumely ,

https://developers.google.com/maps/gmp-get-started#api-key
https://developers.google.com/maps/documentation/places/web-service/usage-and-billing

You can use API it will automate fetch Country when you enter any word like( A, B etc)


Hope this helps!


If we were able to answer your query, kindly help the community by marking it as a solution.

Thanks and Regards. 

0 Upvotes
EShumely
Participant | Diamond Partner
Participant | Diamond Partner

Form with Dropdown/multi check boxes Geo's

SOLVE

Hi webdew, I like the workaround but in my case I want them to choose from a specific list of locations. 

I do like the map app of google, I use it in my scripts (not through their API though so I'm a bit restricted) any tips or tricks I should know about? 🙂 

0 Upvotes
EShumely
Participant | Diamond Partner
Participant | Diamond Partner

Form with Dropdown/multi check boxes Geo's

SOLVE

Hi Mathew, 

 

Thank you for taking the time and answer my question. I will try to be more specific. 

I want to build a form to send to our clients or potential clients. in this form, they will detail their targeting needs. (which prospects they want to target). one of the fields should be Geo. so they should be able to choose different geo's to target in one form. I don't want to use the multi-check box because it doesn't look good on the form (try it and you'll see what I mean). I cant use the dropdown option because it only lets us target one geo and we want to give the client the option to target more than one. So I'm asking if there is a way to combine both options. hope I was able to explain myself better this time. 

0 Upvotes
MatthewShepherd
Solution
Key Advisor

Form with Dropdown/multi check boxes Geo's

SOLVE

Hi @EShumely 

Thanks for the clarification, understood.

This isn't possible natively at the moment but there are a number of ideas in the forum that you could upvote to express your interest in this being looked at in the future  e.g. https://community.hubspot.com/t5/HubSpot-Ideas/Multi-Select-Drop-Down-Field-for-Forms/idi-p/312673 

In the meantime, I found a few forum posts with suggestions on how to potentially achieve this with Javascript and CSS or HubDB and HubL:

https://community.hubspot.com/t5/Blog-Website-Page-Publishing/Multiselect-Dropdown-Field/m-p/339184/...

https://community.hubspot.com/t5/CMS-Development/HUBDB-multiple-selection-option-in-dropdown-in-cust... 




Matthew Shepherd

Freelance HubSpot Consultant
CRM Consultant | SEO Specialist

Did my post help answer your query?Help the community by marking it as a solution.
MatthewShepherd
Key Advisor

Form with Dropdown/multi check boxes Geo's

SOLVE

Hi @EShumely 

Are you looking to change the default Country/Region property from single line text to a dropdown?

If so, this community post might help: https://community.hubspot.com/t5/Tips-Tricks-Best-Practices/Updating-the-Default-Country-Region-Prop...

You can likely make this a multiple checkboxes field instead of a dropdown select. Users could then select more than one country, but perhaps you are adding some code to automatically select the country based on the browser's location?

Matthew Shepherd

Freelance HubSpot Consultant
CRM Consultant | SEO Specialist

Did my post help answer your query?Help the community by marking it as a solution.