CMS Development

PCurtis
Participant

Dynamically populated drop downs on forms

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!

0 Upvotes
4 Replies 4
Kevin-C
Recognized Expert | Partner
Recognized Expert | Partner

Dynamically populated drop downs on forms

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.

Kevin Cornett - Sr. Solutions Architect @ BridgeRev
0 Upvotes
PCurtis
Participant

Dynamically populated drop downs on forms

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

0 Upvotes
Kevin-C
Recognized Expert | Partner
Recognized Expert | Partner

Dynamically populated drop downs on forms

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

Exactly!

 

The crm_property_definitions is perfect for this case as well

Kevin Cornett - Sr. Solutions Architect @ BridgeRev
0 Upvotes
SSukys
Contributor | Elite Partner
Contributor | Elite Partner

Dynamically populated drop downs on forms

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

0 Upvotes