Creating Dropdown Button CTA

Hey There - I want to create a button-style CTA in HubSpot that opens a dropdown menu when clicked, allowing users to select from several files in the dropdown.
All help is appreciated!

Hi @Alecdela,

Thanks for reaching out to the Community!

I was researching this information in our developer articles and came across one that could be helpful to start with this topic: [Module and theme fields](https://Module and theme fields) Additionally, I’d like to involve our experts in the discussion.

Hello @Anton, @Bryantworks, @ChrisoKlepke - Do you have any insights or suggestions for @Alecdela?

The time and expertise you contribute are truly valued!

Thanks,

Diana

Hi Diana, could you kindly reshare the links you suggested above to build a dropdown CTA? We’re looking to put a download Button in a HubSpot landing page Marketplace Theme.

For our use case, people need to select their OS in a dropwdown CTA before they download the file.

Thanks!

Alessandro Cecere

Marketing Manager

Luxor Technology Corporation

Hi @acecere,

Happy to help! Here is the link I suggested for building a dropdown CTA: Module and theme fields

Best,

Diana

Hello there - has anyone managed to crack this? I am also looking for this functionality. Thanks!

Hi @Alecdela

You can achieve this with a custom HubSpot CMS module.

A simple approach is to use a CTA field for the main button and a Link field for each dropdown item. You can add the file links through a repeater/group field, and then use a small amount of JavaScript to open/close the dropdown when the CTA is clicked.

The Link field works well for individual file links, so you don’t need to create a separate custom file field.

Here are the relevant HubSpot docs:

This would allow the content editor to manage the CTA and file links directly from the HubSpot module editor.

I hope this helps you out. Please mark it as Solution Accepted and Like to help another Community member.
This post was created with the assistance of AI tools

Thanks!