# Dynamically populated drop downs on forms

**URL:** <https://community.hubspot.com/t/dynamically-populated-drop-downs-on-forms/78649>\
**Category:** CMS Development\
**Tags:** hubdb, professional, forms\
**Created:** [April 4, 2023, 9:11am UTC](https://community.hubspot.com/t/dynamically-populated-drop-downs-on-forms/78649 "2023-04-04T09:11:08Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![PCurtis](https://avatars.discourse-cdn.com/v4/letter/p/ad7895/32.png) [@PCurtis](https://community.hubspot.com/u/PCurtis)\
**Post date:** [April 4, 2023, 9:11am UTC](https://community.hubspot.com/t/dynamically-populated-drop-downs-on-forms/78649/1 "2023-04-04T09:11:08Z")

</div>

So i am not sure this forum is the best fit but then i couldn’t see a better one.

I would like to present a form where the menu options are dynamically created based on previous choices.

A Building menu will then dynamically update the next Unit menu to show only the units inside that building for example. Seems like pretty standard stuff.

I have data in HubDB but there’s no way i can see to filter the contents of a drop down or drive the contents of a drop down from data - on a hubspot form.

I presume a HubSpot CMS page could do this, bread and butter work. But i really need the result of the page be posted as a form or contact. So i \*guess\* the standalone CMS page could be built to do this?  
Seems a horribly complex workaround for a task that seems very universal - meaning maybe i am missing something really obvious here?  
Would appreciate any thoughts!

---

<div class="post-metadata">

**Author:** ![SSukys](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/ssukys/32/35013_2.png) [@SSukys](https://community.hubspot.com/u/SSukys)\
**Post date:** [April 4, 2023, 2:31pm UTC](https://community.hubspot.com/t/dynamically-populated-drop-downs-on-forms/78649/2 "2023-04-04T14:31:14Z")

</div>

Hey @PCurtis, thanks for the post! I am going to hop in and attempt to help out here.

I think the first piece is that HubSpot forms are pretty basic in general. They are meant to be at the initial information-gathering stage of processes, and anything more advanced is pretty limited. I have definitely gone down the rabbit hole you are attempting to solve. I came up with only one solution that met my use case and that was to use a third-party integration like Jot Form or Gravity Form. This allowed me to easily have the branching logic, changing of drop down selections, embed it in a page, and other things.

You can certainly create it as a CMS page and insert it in another page as an iFrame but that brings up other questions of loading times, etc.

I hope this helps!

If this helped, please click the Question Answered button above my post!

Sincerely,

Sean Sukys

Account Executive, Bluleadz a HubSpot Elite Partner Agency

[ssukys@bluleadz.com](mailto:ssukys@bluleadz.com)

---

<div class="post-metadata">

**Author:** ![Kevin-C](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/kevin-c/32/34570_2.png) [@Kevin-C](https://community.hubspot.com/u/Kevin-C)\
**Post date:** [April 4, 2023, 4:17pm UTC](https://community.hubspot.com/t/dynamically-populated-drop-downs-on-forms/78649/3 "2023-04-04T16:17:58Z")

</div>

Hey @PCurtis

Not sure if you have access to development resources, but this could be done relatively easily by creating a custom form and logic using the HubDB as a data source. You could then use the forms api to submit the data to a HS form.

---

<div class="post-metadata">

**Author:** ![PCurtis](https://avatars.discourse-cdn.com/v4/letter/p/ad7895/32.png) [@PCurtis](https://community.hubspot.com/u/PCurtis)\
**Post date:** [April 4, 2023, 4:20pm UTC](https://community.hubspot.com/t/dynamically-populated-drop-downs-on-forms/78649/4 "2023-04-04T16:20:34Z")

</div>

Hi Kevin, i have no problem coding or using HubDB. Can you point me to any resources that give some background on this. As in how would i approach creating a custom form? It needs to be something that can be hosted and something that people can link to.  
Do you mean pop an html form on a CMS page driven by HubDB?  
thanks  
Paul

---

<div class="post-metadata">

**Author:** ![Kevin-C](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/kevin-c/32/34570_2.png) [@Kevin-C](https://community.hubspot.com/u/Kevin-C)\
**Post date:** [April 4, 2023, 4:28pm UTC](https://community.hubspot.com/t/dynamically-populated-drop-downs-on-forms/78649/5 "2023-04-04T16:28:32Z")

</div>

“Do you mean pop an html form on a CMS page driven by HubDB?”

Exactly!

The [crm\_property\_definitions](https://developers.hubspot.com/docs/cms/hubl/functions#crm-property-definitions) is perfect for this case as well
