# Adding links to each item (text) in dropdown list

**URL:** <https://forum.bubble.io/t/adding-links-to-each-item-text-in-dropdown-list/285988>\
**Category:** Need help\
**Created:** [September 29, 2023, 2:34pm UTC](https://forum.bubble.io/t/adding-links-to-each-item-text-in-dropdown-list/285988 "2023-09-29T14:34:20Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![gmalarik](https://avatars.discourse-cdn.com/v4/letter/g/aeb1de/32.png) [@gmalarik](https://forum.bubble.io/u/gmalarik)\
**Post date:** [September 29, 2023, 2:34pm UTC](https://forum.bubble.io/t/adding-links-to-each-item-text-in-dropdown-list/285988/1 "2023-09-29T14:34:20Z")

</div>

When the user clicks on dropdown, then selects an item on the list, it automatically opens a page or scrolls to a location on the current page

---

<div class="post-metadata">

**Author:** ![msgiblin](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/msgiblin/32/119904_2.png) [@msgiblin](https://forum.bubble.io/u/msgiblin)\
**Post date:** [September 29, 2023, 2:42pm UTC](https://forum.bubble.io/t/adding-links-to-each-item-text-in-dropdown-list/285988/2 "2023-09-29T14:42:08Z")

</div>

Hi there! I’m not exactly sure what you’re looking to do - could you describe what you’re looking to do, what you’ve tried, and screenshots of how you have the elements setup, including workflows? Thanks!

---

<div class="post-metadata">

**Author:** ![gmalarik](https://avatars.discourse-cdn.com/v4/letter/g/aeb1de/32.png) [@gmalarik](https://forum.bubble.io/u/gmalarik)\
**Post date:** [September 29, 2023, 3:48pm UTC](https://forum.bubble.io/t/adding-links-to-each-item-text-in-dropdown-list/285988/3 "2023-09-29T15:48:27Z")

</div>

Hello!  
I want to have a drop down list of multiple items that when the user selects an item on the list, it uniquely opens another page:

---

<div class="post-metadata">

**Author:** ![gmalarik](https://avatars.discourse-cdn.com/v4/letter/g/aeb1de/32.png) [@gmalarik](https://forum.bubble.io/u/gmalarik)\
**Post date:** [September 29, 2023, 3:58pm UTC](https://forum.bubble.io/t/adding-links-to-each-item-text-in-dropdown-list/285988/4 "2023-09-29T15:58:11Z")

</div>

I can only get the drop down list to display all 4 items. I want the user to select each item to open a different page linked to each.

---

<div class="post-metadata">

**Author:** ![chikeiroegbu](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/chikeiroegbu/32/182029_2.png) [@chikeiroegbu](https://forum.bubble.io/u/chikeiroegbu)\
**Post date:** [September 29, 2023, 4:00pm UTC](https://forum.bubble.io/t/adding-links-to-each-item-text-in-dropdown-list/285988/5 "2023-09-29T16:00:14Z")

</div>

You can create an option set with the values (display text and URL) of the things you want in the dropdown. Then add a repeating group and use the option set you just created as the data source.

Then set a workflow for when you click each cell in the RG.

---

<div class="post-metadata">

**Author:** ![msgiblin](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/msgiblin/32/119904_2.png) [@msgiblin](https://forum.bubble.io/u/msgiblin)\
**Post date:** [September 29, 2023, 4:17pm UTC](https://forum.bubble.io/t/adding-links-to-each-item-text-in-dropdown-list/285988/6 "2023-09-29T16:17:29Z")

</div>

Do you want the dropdown selection itself to be the action that launches the new page?

---

<div class="post-metadata">

**Author:** ![gmalarik](https://avatars.discourse-cdn.com/v4/letter/g/aeb1de/32.png) [@gmalarik](https://forum.bubble.io/u/gmalarik)\
**Post date:** [September 29, 2023, 4:18pm UTC](https://forum.bubble.io/t/adding-links-to-each-item-text-in-dropdown-list/285988/7 "2023-09-29T16:18:51Z")

</div>

I don’t see where I can add a URL into the Option Set data

---

<div class="post-metadata">

**Author:** ![gmalarik](https://avatars.discourse-cdn.com/v4/letter/g/aeb1de/32.png) [@gmalarik](https://forum.bubble.io/u/gmalarik)\
**Post date:** [September 29, 2023, 4:21pm UTC](https://forum.bubble.io/t/adding-links-to-each-item-text-in-dropdown-list/285988/8 "2023-09-29T16:21:23Z")

</div>

Yes, that’s exactly what I want. Also instead of launching a new page, can it scroll to a location on the same page?

---

<div class="post-metadata">

**Author:** ![chikeiroegbu](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/chikeiroegbu/32/182029_2.png) [@chikeiroegbu](https://forum.bubble.io/u/chikeiroegbu)\
**Post date:** [September 29, 2023, 4:27pm UTC](https://forum.bubble.io/t/adding-links-to-each-item-text-in-dropdown-list/285988/9 "2023-09-29T16:27:56Z")

</div>

You can add a new attribute and name it url. Then add the url you want inside that attribute.

 ![screenshot-bubble.io-2023.09.29-17_24_50](https://us1.discourse-cdn.com/bubble/original/3X/6/6/66889e707fbac4475994f023321ade2ae8abff1a.png)  
 ![screenshot-bubble.io-2023.09.29-17_23_35](https://us1.discourse-cdn.com/bubble/original/3X/7/0/7064895b06b74fc3b0bd0e65413ee0824d58cbc5.png)

---

<div class="post-metadata">

**Author:** ![msgiblin](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/msgiblin/32/119904_2.png) [@msgiblin](https://forum.bubble.io/u/msgiblin)\
**Post date:** [September 29, 2023, 4:28pm UTC](https://forum.bubble.io/t/adding-links-to-each-item-text-in-dropdown-list/285988/10 "2023-09-29T16:28:46Z")

</div>

Yes this is possible, I just tested it myself. You can do this either with option sets as @chikeiroegbu mentioned, or with a field on your data type.

On option sets, you would create a new Attribute called ‘Link’, and include the URL on each option. If you used a data type instead, you would create a new field on your Datatype called ‘Link’, with the URL.

In both cases, you populate your dropdown with whatever that data or option set’s Display or Name is, and start a new workflow:  
New workflow → Element → An input’s value is changed  
 ![image](https://us1.discourse-cdn.com/bubble/original/3X/e/1/e1fad59344f6ccbbb2a4c0b63906dce29fe01f3a.png)

Choose your Dropdown as the Element to watch for changes.  
For Step 1 of the workflow, go to Navigation → ‘Open an external website’  
 ![image](https://us1.discourse-cdn.com/bubble/original/3X/c/1/c1423f14ddc90b434da39882af38d1b1da5980c7.png)

On the link itself, choose ‘Insert Dynamic Data’ and then select ‘This Dropdown’s value’s Link’ (or if you’re using an Option Set, choose ‘This Dropdown’s value’s Link’ (this should be similar if you’re using data or option set). And then decide whether or not you want it to open in a new tab.  
 ![image](https://us1.discourse-cdn.com/bubble/original/3X/d/a/daed58ab28bdc87654d7a25ac406d27f0638d9b9.png)

As far as scrolling to a particular place on the page you’re bringing them to, that depends on how the page is setup (if they already have anchor tags, you can reference them in the URL), or sometimes you can use Google searches that highlight keywords and bring a user directly to a particular part of a page.

If you’re not going to an external page but instead staying within your App, it can get a bit simpler as you can control the focus, scroll position, etc.

---

<div class="post-metadata">

**Author:** ![gmalarik](https://avatars.discourse-cdn.com/v4/letter/g/aeb1de/32.png) [@gmalarik](https://forum.bubble.io/u/gmalarik)\
**Post date:** [September 29, 2023, 4:43pm UTC](https://forum.bubble.io/t/adding-links-to-each-item-text-in-dropdown-list/285988/11 "2023-09-29T16:43:19Z")

</div>

Thank you so much [chikeiroegbu and msgiblin, I’ll try it right now!

---

<div class="post-metadata">

**Author:** ![gmalarik](https://avatars.discourse-cdn.com/v4/letter/g/aeb1de/32.png) [@gmalarik](https://forum.bubble.io/u/gmalarik)\
**Post date:** [September 29, 2023, 5:16pm UTC](https://forum.bubble.io/t/adding-links-to-each-item-text-in-dropdown-list/285988/12 "2023-09-29T17:16:55Z")

</div>

The solutions worked!! Thanks you all!

Cheers, Mark

---

<div class="post-metadata">

**Author:** ![msgiblin](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/msgiblin/32/119904_2.png) [@msgiblin](https://forum.bubble.io/u/msgiblin)\
**Post date:** [September 29, 2023, 5:53pm UTC](https://forum.bubble.io/t/adding-links-to-each-item-text-in-dropdown-list/285988/13 "2023-09-29T17:53:54Z")

</div>

Glad to hear it! Do you mind marking the answer as the Solution so others could find it if they run into the same issue?

---

<div class="post-metadata">

**Author:** ![gmalarik](https://avatars.discourse-cdn.com/v4/letter/g/aeb1de/32.png) [@gmalarik](https://forum.bubble.io/u/gmalarik)\
**Post date:** [September 29, 2023, 6:08pm UTC](https://forum.bubble.io/t/adding-links-to-each-item-text-in-dropdown-list/285988/14 "2023-09-29T18:08:08Z")

</div>

Will do!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/bubble/original/3X/2/8/2847faa74692c2ffa5d939d3dc3724cdd060d247.png) [@system](https://forum.bubble.io/u/system)\
**Post date:** [December 8, 2023, 2:34pm UTC](https://forum.bubble.io/t/adding-links-to-each-item-text-in-dropdown-list/285988/15 "2023-12-08T14:34:30Z")

</div>

Closed on December 8, 2023, 2:34pm UTC

This topic was automatically closed after 70 days. New replies are no longer allowed.
