# Creating a selector for dynamically created pages

**URL:** <https://community.hubspot.com/t/creating-a-selector-for-dynamically-created-pages/31232>\
**Category:** APIs & Integrations\
**Tags:** cms-content\
**Created:** [February 3, 2021, 9:21pm UTC](https://community.hubspot.com/t/creating-a-selector-for-dynamically-created-pages/31232 "2021-02-03T21:21:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![storycollab](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/storycollab/32/35608_2.png) [@storycollab](https://community.hubspot.com/u/storycollab)\
**Post date:** [February 3, 2021, 9:21pm UTC](https://community.hubspot.com/t/creating-a-selector-for-dynamically-created-pages/31232/1 "2021-02-03T21:21:53Z")

</div>

I will be creating a HubDB that will populate pages dynamically. Looking for a good way to make the list of those created pages available in a selection form field or check box in a form so that I can send them or automate actions with a specific set of the pages-- suggestions?

---

<div class="post-metadata">

**Author:** ![dennisedson](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dennisedson/32/28044_2.png) [@dennisedson](https://community.hubspot.com/u/dennisedson)\
**Post date:** [February 5, 2021, 4:27pm UTC](https://community.hubspot.com/t/creating-a-selector-for-dynamically-created-pages/31232/2 "2021-02-05T16:27:34Z")

</div>

Hello @storycollab

Going to see what @alyssamwilie , @Kevin-C and @piersg have to say about this

---

<div class="post-metadata">

**Author:** ![piersg](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/piersg/32/99782_2.png) [@piersg](https://community.hubspot.com/u/piersg)\
**Post date:** [February 5, 2021, 4:38pm UTC](https://community.hubspot.com/t/creating-a-selector-for-dynamically-created-pages/31232/3 "2021-02-05T16:38:13Z")

</div>

Hi @storycollab (thanks @dennisedson)

You could do this with javascript. You could either have an array of all the page urls/names hardcoded in JS if it’s not a large DB, or if it’s a large DB you could use the HubDB API to get all the values for the hs\_path/hs\_name column into an array, and then add each one as an option to a select field/as a checkbox.
