# How could I use a data from database as a destination for go to page?

**URL:** <https://forum.bubble.io/t/how-could-i-use-a-data-from-database-as-a-destination-for-go-to-page/6397>\
**Category:** Need help\
**Created:** [September 27, 2016, 6:58am UTC](https://forum.bubble.io/t/how-could-i-use-a-data-from-database-as-a-destination-for-go-to-page/6397 "2016-09-27T06:58:24Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![successly](https://avatars.discourse-cdn.com/v4/letter/s/e19adc/32.png) [@successly](https://forum.bubble.io/u/successly)\
**Post date:** [September 27, 2016, 6:58am UTC](https://forum.bubble.io/t/how-could-i-use-a-data-from-database-as-a-destination-for-go-to-page/6397/1 "2016-09-27T06:58:24Z")

</div>

I am trying to redirect the user once an icon is clicked but I want the app to direct the user to the URL dictated by the data from the database (I created a text field named Webpage which will be containing URLs).

Thank you in advance. Just started using Bubble so I’m really new to everything. I will definitely be posting more questions later so please do forgive me. Again, thanks. 🙂

---

<div class="post-metadata">

**Author:** ![NigelG](https://avatars.discourse-cdn.com/v4/letter/n/ea5d25/32.png) [@NigelG](https://forum.bubble.io/u/NigelG)\
**Post date:** [September 27, 2016, 7:03am UTC](https://forum.bubble.io/t/how-could-i-use-a-data-from-database-as-a-destination-for-go-to-page/6397/2 "2016-09-27T07:03:10Z")

</div>

Yes, you can store it as text, and then open it …

![](https://us1.discourse-cdn.com/bubble/original/2X/a/abd2e5f1ef8633a58d00f75c592929a94da9e701.png)

Good for external sites, almost certainly not the way to go with internal bubble pages.

---

<div class="post-metadata">

**Author:** ![successly](https://avatars.discourse-cdn.com/v4/letter/s/e19adc/32.png) [@successly](https://forum.bubble.io/u/successly)\
**Post date:** [September 27, 2016, 7:07am UTC](https://forum.bubble.io/t/how-could-i-use-a-data-from-database-as-a-destination-for-go-to-page/6397/3 "2016-09-27T07:07:39Z")

</div>

Worked like a charm. Thanks 🙂

---

<div class="post-metadata">

**Author:** ![successly](https://avatars.discourse-cdn.com/v4/letter/s/e19adc/32.png) [@successly](https://forum.bubble.io/u/successly)\
**Post date:** [September 29, 2016, 3:55am UTC](https://forum.bubble.io/t/how-could-i-use-a-data-from-database-as-a-destination-for-go-to-page/6397/4 "2016-09-29T03:55:15Z")

</div>

Hi @NigelG,

I have another problem related to this. The thing is, I have a repeating group wherein it shows a list of “Actions”. Each of this action, I placed a button where clicking the button will redirect the user to the “Page” for that action. These pages are actually Bubble pages. However, since each action has different pages to redirect to, I decided to simply save the web URL in the data store then just retrieve it through “Open an external website” through your suggestion.

However, I realized that I actually have to pass data to the redirected Action Page.

Do you think there is any workaround for this? Or probably a better way of doing it? Thanks in advance. 🙂

---

<div class="post-metadata">

**Author:** ![scottb50](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/scottb50/32/9334_2.png) [@scottb50](https://forum.bubble.io/u/scottb50)\
**Post date:** [September 29, 2016, 5:00am UTC](https://forum.bubble.io/t/how-could-i-use-a-data-from-database-as-a-destination-for-go-to-page/6397/5 "2016-09-29T05:00:44Z")

</div>

URL variables might work, if the information isn’t sensitive

---

<div class="post-metadata">

**Author:** ![successly](https://avatars.discourse-cdn.com/v4/letter/s/e19adc/32.png) [@successly](https://forum.bubble.io/u/successly)\
**Post date:** [September 29, 2016, 5:18am UTC](https://forum.bubble.io/t/how-could-i-use-a-data-from-database-as-a-destination-for-go-to-page/6397/6 "2016-09-29T05:18:44Z")

</div>

how can I do URL variables?

thanks.

---

<div class="post-metadata">

**Author:** ![NigelG](https://avatars.discourse-cdn.com/v4/letter/n/ea5d25/32.png) [@NigelG](https://forum.bubble.io/u/NigelG)\
**Post date:** [September 29, 2016, 5:50am UTC](https://forum.bubble.io/t/how-could-i-use-a-data-from-database-as-a-destination-for-go-to-page/6397/7 "2016-09-29T05:50:16Z")

</div>

OK, well if these are Bubble Pages, then you don’t want to do “Open An External Page”.

Use Go To Page … instead.

Then tick the box, Send More Parameters…

![](https://us1.discourse-cdn.com/bubble/original/2X/6/659bffbc085e64937f6f6c3864b044ba5c3e9cf9.png)

In here you can send text, or even a Unique Id to reference a thing.

---

<div class="post-metadata">

**Author:** ![jameslusk](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/jameslusk/32/5725_2.png) [@jameslusk](https://forum.bubble.io/u/jameslusk)\
**Post date:** [October 26, 2016, 9:42pm UTC](https://forum.bubble.io/t/how-could-i-use-a-data-from-database-as-a-destination-for-go-to-page/6397/8 "2016-10-26T21:42:14Z")

</div>

Will this work in a URL shared by others to our app shared on the web from outside the app?

The goal is to set up a referral code system. So I want to generate a ‘link’ which displayed on a users profile page, with their referral code. Then, they can share this link, and the code automatically fills in the input box with the code, even though the link was clicked of Facebook, for example.

---

<div class="post-metadata">

**Author:** ![scottb50](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/scottb50/32/9334_2.png) [@scottb50](https://forum.bubble.io/u/scottb50)\
**Post date:** [October 28, 2016, 4:15pm UTC](https://forum.bubble.io/t/how-could-i-use-a-data-from-database-as-a-destination-for-go-to-page/6397/9 "2016-10-28T16:15:53Z")

</div>

[quote=“jameslusk, post:8, topic:6397”]  
automatically fills in the input box with the code, [/quote]

What input box?

---

<div class="post-metadata">

**Author:** ![jameslusk](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/jameslusk/32/5725_2.png) [@jameslusk](https://forum.bubble.io/u/jameslusk)\
**Post date:** [October 28, 2016, 5:49pm UTC](https://forum.bubble.io/t/how-could-i-use-a-data-from-database-as-a-destination-for-go-to-page/6397/10 "2016-10-28T17:49:17Z")

</div>

It is just a regular text input. The dynamic data is set as Nigel explains above to get the parameter/data from the URL.

---

<div class="post-metadata">

**Author:** ![scottb50](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/scottb50/32/9334_2.png) [@scottb50](https://forum.bubble.io/u/scottb50)\
**Post date:** [October 28, 2016, 6:33pm UTC](https://forum.bubble.io/t/how-could-i-use-a-data-from-database-as-a-destination-for-go-to-page/6397/11 "2016-10-28T18:33:56Z")

</div>

and you want that data, that you pass with the url to be displayed in a text field?

---

<div class="post-metadata">

**Author:** ![jameslusk](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/jameslusk/32/5725_2.png) [@jameslusk](https://forum.bubble.io/u/jameslusk)\
**Post date:** [October 28, 2016, 11:08pm UTC](https://forum.bubble.io/t/how-could-i-use-a-data-from-database-as-a-destination-for-go-to-page/6397/12 "2016-10-28T23:08:24Z")

</div>

Yes. I specifically used an input field since I was going to have to save that info to the database later. This is what’s i was able to get working.

---

<div class="post-metadata">

**Author:** ![romanmg](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/romanmg/32/237672_2.png) [@romanmg](https://forum.bubble.io/u/romanmg)\
**Post date:** [October 29, 2016, 6:58am UTC](https://forum.bubble.io/t/how-could-i-use-a-data-from-database-as-a-destination-for-go-to-page/6397/13 "2016-10-29T06:58:03Z")

</div>

Yes you can do this. Generate a dynamic parameter/referral value and look for the parameter key whenever you need it to find the referral value. If the full link is shared, it will still be there!

---

<div class="post-metadata">

**Author:** ![scottb50](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/scottb50/32/9334_2.png) [@scottb50](https://forum.bubble.io/u/scottb50)\
**Post date:** [October 30, 2016, 4:44pm UTC](https://forum.bubble.io/t/how-could-i-use-a-data-from-database-as-a-destination-for-go-to-page/6397/14 "2016-10-30T16:44:09Z")

</div>

Exactly.

![](https://us1.discourse-cdn.com/bubble/original/2X/3/34ac7e831e993e2056200f54a39528cd39f48cb7.jpg)

Above sends thing = 5 to the destination from page 1.

Page 2:  
Set a group. It will contain the input field.

First, you tell the group that the info it needs will come from the page url.

 ![](https://us1.discourse-cdn.com/bubble/original/2X/b/b551e09014fd1c9e772ff63cb7956cd5936489d1.png)

Then tell the input field to find the value of “thing” and diplay it as the initial content.

 ![](https://us1.discourse-cdn.com/bubble/original/2X/9/998e91615c82b222c080f9ea5d0364bf846592bc.png)

When you run this, you should see 5 in the text input box

---

<div class="post-metadata">

**Author:** ![jameslusk](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/jameslusk/32/5725_2.png) [@jameslusk](https://forum.bubble.io/u/jameslusk)\
**Post date:** [November 9, 2016, 7:40pm UTC](https://forum.bubble.io/t/how-could-i-use-a-data-from-database-as-a-destination-for-go-to-page/6397/15 "2016-11-09T19:40:52Z")

</div>

the images in that example are gorgeous and really helpful!

---

<div class="post-metadata">

**Author:** ![scottb50](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/scottb50/32/9334_2.png) [@scottb50](https://forum.bubble.io/u/scottb50)\
**Post date:** [November 12, 2016, 4:48am UTC](https://forum.bubble.io/t/how-could-i-use-a-data-from-database-as-a-destination-for-go-to-page/6397/16 "2016-11-12T04:48:46Z")

</div>

Thanks!
