# Allow users to create forms with unique urls

**URL:** <https://forum.bubble.io/t/allow-users-to-create-forms-with-unique-urls/9748>\
**Category:** App Organization\
**Created:** [January 20, 2017, 10:39pm UTC](https://forum.bubble.io/t/allow-users-to-create-forms-with-unique-urls/9748 "2017-01-20T22:39:37Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![kate.l.hopkins.2](https://avatars.discourse-cdn.com/v4/letter/k/848f3c/32.png) [@kate.l.hopkins.2](https://forum.bubble.io/u/kate.l.hopkins.2)\
**Post date:** [January 20, 2017, 10:39pm UTC](https://forum.bubble.io/t/allow-users-to-create-forms-with-unique-urls/9748/1 "2017-01-20T22:39:37Z")

</div>

I’m trying to build an address collecting application. Ideally, when a new user submits their basic information an address book form would be generated for them. The address book form would be the same for every user, but the url would be different. That way, when a user sent the link form to their friends,the friends could input their addresses, and the addresses would be displayed only to that user.

Is there a way to do this?

---

<div class="post-metadata">

**Author:** ![louisadekoya](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/louisadekoya/32/217422_2.png) [@louisadekoya](https://forum.bubble.io/u/louisadekoya)\
**Post date:** [January 21, 2017, 12:58am UTC](https://forum.bubble.io/t/allow-users-to-create-forms-with-unique-urls/9748/2 "2017-01-21T00:58:54Z")

</div>

If I’ve understood you correctly then I think yes, this is possible.

As always there’s probably more than one way to do this but here’s one way. When a user submits their basic information, you should have a workflow action that generates a unique random code (use the [calculate formula \> Generate a random string] for this:

![](https://us1.discourse-cdn.com/bubble/original/2X/4/467f7439bacd257cdaaadbc5f422154347ec70ab.png)

You should probably make this string fairly long, like 8 chars, and add the user’s initials, so as to (almost) guarantee uniqueness. You can then save the string against the user (e.g. to a field called ‘nCode’) and set their unique url to the page url plus the code as a parameter - e.g. [https://myapp/mypage?nCode=](https://myapp/mypage?nCode=)[user’s random code]

Finally, when your page loads, you get the nCode value from the URL and set the page’s user to be the user with a matching nCode value.

I hope this helps.

---

<div class="post-metadata">

**Author:** ![kate.l.hopkins.2](https://avatars.discourse-cdn.com/v4/letter/k/848f3c/32.png) [@kate.l.hopkins.2](https://forum.bubble.io/u/kate.l.hopkins.2)\
**Post date:** [January 24, 2017, 2:23am UTC](https://forum.bubble.io/t/allow-users-to-create-forms-with-unique-urls/9748/3 "2017-01-24T02:23:54Z")

</div>

This is great! I might use their phone number instead of the random string.

How exactly do I set the url? How do I tell bubble to reference the url when the page loads?

Thanks for your help!

---

<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:** [January 24, 2017, 8:43am UTC](https://forum.bubble.io/t/allow-users-to-create-forms-with-unique-urls/9748/4 "2017-01-24T08:43:25Z")

</div>

An easier way might be to have a page that has a Data Type (maybe User) set on it already that includes the Unique Id of the User already.

Have you done the “Sending data to a page” tutorial ?

---

<div class="post-metadata">

**Author:** ![kate.l.hopkins.2](https://avatars.discourse-cdn.com/v4/letter/k/848f3c/32.png) [@kate.l.hopkins.2](https://forum.bubble.io/u/kate.l.hopkins.2)\
**Post date:** [January 24, 2017, 4:58pm UTC](https://forum.bubble.io/t/allow-users-to-create-forms-with-unique-urls/9748/5 "2017-01-24T16:58:36Z")

</div>

I can check that out. How would that work for this use case?

Person A creates an account, and is given a link to their “personal” form, e.g. [webpage.com/123456789](http://webpage.com/123456789) (I know, it would be messier)  
Person A sends that link to person B, asking them to fill out the form  
Person B goes to [webpage.com/123456789](http://webpage.com/123456789) and enters their information  
Bubble recognizes that the data was intended for Person A and displays it when A logs in next

---

<div class="post-metadata">

**Author:** ![gijs](https://avatars.discourse-cdn.com/v4/letter/g/9fc348/32.png) [@gijs](https://forum.bubble.io/u/gijs)\
**Post date:** [November 2, 2017, 9:46am UTC](https://forum.bubble.io/t/allow-users-to-create-forms-with-unique-urls/9748/6 "2017-11-02T09:46:33Z")

</div>

Hi Kate,

I’m dealing with the same problem. Sharing unique urls with users who are not logged in.  
Did your solution work?

Thnx

---

<div class="post-metadata">

**Author:** ![lfsantana](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/lfsantana/32/78370_2.png) [@lfsantana](https://forum.bubble.io/u/lfsantana)\
**Post date:** [May 24, 2021, 7:34pm UTC](https://forum.bubble.io/t/allow-users-to-create-forms-with-unique-urls/9748/7 "2021-05-24T19:34:25Z")

</div>

This post is for a similar problem and might be of help:

> [@Individual URL's for users](http://forum.bubble.io/t/individual-urls-for-users/13167/2):
>
> A good tactic is using their unique ID trimmed down to about 6-7 length and putting it in the URL data. When the page is loaded it shows information based on what is in the URL.
