# Get from page URL type?

**URL:** <https://forum.bubble.io/t/get-from-page-url-type/9809>\
**Category:** Need help\
**Created:** [January 23, 2017, 4:35am UTC](https://forum.bubble.io/t/get-from-page-url-type/9809 "2017-01-23T04:35:38Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![JP29](https://avatars.discourse-cdn.com/v4/letter/j/ecccb3/32.png) [@JP29](https://forum.bubble.io/u/JP29)\
**Post date:** [January 23, 2017, 4:35am UTC](https://forum.bubble.io/t/get-from-page-url-type/9809/1 "2017-01-23T04:35:38Z")

</div>

My app seems to be working just fine but wanted to determine whether this is a bug or not.

I am trying to populate a default value for a drop down on a results page by passing the selection made on the drop down on the index page. To do so I am using “Get from page URL.” For some reason I keep getting the error that the “Default value should be a number but right now it is a text.” on the results page when I do this. The drop down is a dynamic list formatted as a number. Not sure if the URL is still only formatted as text as I’ve read in other forums, but the default value is populating just fine despite this highlighted error. Is this a bug?

Dropdown:

![](https://us1.discourse-cdn.com/bubble/original/2X/8/8bff686115a2e3cae53f9e20311b9f175c59ade5.jpg)

Error Message:

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

---

<div class="post-metadata">

**Author:** ![Scott](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/scott/32/565_2.png) [@Scott](https://forum.bubble.io/u/Scott)\
**Post date:** [January 23, 2017, 4:43am UTC](https://forum.bubble.io/t/get-from-page-url-type/9809/2 "2017-01-23T04:43:58Z")

</div>

The dropdown can probably handle the conversion from text to a number itself, but Bubble’s error checker is throwing the exception. If there was a way to typecast the text, it would solve it, though I’m not aware of a way to typecast primitive datatypes in Bubble.

---

<div class="post-metadata">

**Author:** ![JP29](https://avatars.discourse-cdn.com/v4/letter/j/ecccb3/32.png) [@JP29](https://forum.bubble.io/u/JP29)\
**Post date:** [January 23, 2017, 9:38pm UTC](https://forum.bubble.io/t/get-from-page-url-type/9809/3 "2017-01-23T21:38:26Z")

</div>

Hi @Scott - so does that mean this is NOT a bug? Or it is?

Thanks!

---

<div class="post-metadata">

**Author:** ![Scott](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/scott/32/565_2.png) [@Scott](https://forum.bubble.io/u/Scott)\
**Post date:** [January 23, 2017, 9:47pm UTC](https://forum.bubble.io/t/get-from-page-url-type/9809/4 "2017-01-23T21:47:20Z")

</div>

Depending on Bubble’s intentions, it may or may not be. If they strictly permit text only, it isn’t a bug. If they permit numbers as well, it’s a bug in the error checker.

---

<div class="post-metadata">

**Author:** ![emmanuel](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/emmanuel/32/27657_2.png) [@emmanuel](https://forum.bubble.io/u/emmanuel)\
**Post date:** [January 23, 2017, 9:47pm UTC](https://forum.bubble.io/t/get-from-page-url-type/9809/5 "2017-01-23T21:47:48Z")

</div>

This isn’t a bug, but we just added the ability to pick a type.

---

<div class="post-metadata">

**Author:** ![JP29](https://avatars.discourse-cdn.com/v4/letter/j/ecccb3/32.png) [@JP29](https://forum.bubble.io/u/JP29)\
**Post date:** [January 23, 2017, 9:47pm UTC](https://forum.bubble.io/t/get-from-page-url-type/9809/6 "2017-01-23T21:47:56Z")

</div>

@Scott - looks like type has been added to “Get from URL” so problem solved!

Thanks!

---

<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:** [February 6, 2017, 4:35am UTC](https://forum.bubble.io/t/get-from-page-url-type/9809/7 "2017-02-06T04:35:48Z")

</div>

Closed on February 6, 2017, 4:35am UTC

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