# Change firebase url with blocks

**URL:** <https://community.thunkable.com/t/change-firebase-url-with-blocks/1174942>\
**Category:** Questions about Thunkable X\
**Created:** [March 18, 2021, 11:22pm UTC](https://community.thunkable.com/t/change-firebase-url-with-blocks/1174942 "2021-03-18T23:22:53Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![augustopaguaga010y](https://avatars.discourse-cdn.com/v4/letter/a/e99b99/32.png) [@augustopaguaga010y](https://community.thunkable.com/u/augustopaguaga010y)\
**Post date:** [March 18, 2021, 11:22pm UTC](https://community.thunkable.com/t/change-firebase-url-with-blocks/1174942/1 "2021-03-18T23:22:53Z")

</div>

I need to change firebase url to avoid so many “when firebase datachanged” calls and only get data when a tag of chosen url changes. (example: url / room1) … is there a way to do this from the blocks?

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [March 19, 2021, 2:34am UTC](https://community.thunkable.com/t/change-firebase-url-with-blocks/1174942/2 "2021-03-19T02:34:44Z")

</div>

Can you explain more?  
Have you added a listener and now don’t want to see the changes of this listener anymore?

---

<div class="post-metadata">

**Author:** ![luv.ak.tech](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/luv.ak.tech/32/104896_2.png) [@luv.ak.tech](https://community.thunkable.com/u/luv.ak.tech)\
**Post date:** [March 19, 2021, 8:34am UTC](https://community.thunkable.com/t/change-firebase-url-with-blocks/1174942/3 "2021-03-19T08:34:14Z")

</div>

i think he wants to change the firebase url with blocks as it is located in app settings

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [March 19, 2021, 8:40am UTC](https://community.thunkable.com/t/change-firebase-url-with-blocks/1174942/4 "2021-03-19T08:40:41Z")

</div>

Which URL?  
Database URL, then **no**

---

<div class="post-metadata">

**Author:** ![augustopaguaga010y](https://avatars.discourse-cdn.com/v4/letter/a/e99b99/32.png) [@augustopaguaga010y](https://community.thunkable.com/u/augustopaguaga010y)\
**Post date:** [March 19, 2021, 8:12pm UTC](https://community.thunkable.com/t/change-firebase-url-with-blocks/1174942/5 "2021-03-19T20:12:43Z")

</div>

![imagen](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/2/c/2c2e5818ddc3020d6dcf8cff84329f5f1860eb6a.png)

in firebase I have a “data” key … when the screen starts the text of label 14 automatically changes to “undefined” but there was no change in realtime db so that the value of the text changed

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [March 19, 2021, 8:44pm UTC](https://community.thunkable.com/t/change-firebase-url-with-blocks/1174942/6 "2021-03-19T20:44:29Z")

</div>

Where else are you setting the value of Label14?

Just as a test, if you put a “vibrate” block above the “set Label14’s Text to” block and test this in Thunkable Live on a device, does the device vibrate when the screen opens?

---

<div class="post-metadata">

**Author:** ![augustopaguaga010y](https://avatars.discourse-cdn.com/v4/letter/a/e99b99/32.png) [@augustopaguaga010y](https://community.thunkable.com/u/augustopaguaga010y)\
**Post date:** [March 19, 2021, 9:09pm UTC](https://community.thunkable.com/t/change-firebase-url-with-blocks/1174942/7 "2021-03-19T21:09:37Z")

</div>

yes, the device vibrates with that block above the “set text label14” …

Before it said “undefined” with other blocks inside getproperty of object (I put the wrong image), but with the blocks as they are in the image this warning appears:  
“something has gone grow, check your blocks and reset”

---

<div class="post-metadata">

**Author:** ![augustopaguaga010y](https://avatars.discourse-cdn.com/v4/letter/a/e99b99/32.png) [@augustopaguaga010y](https://community.thunkable.com/u/augustopaguaga010y)\
**Post date:** [March 20, 2021, 12:41am UTC](https://community.thunkable.com/t/change-firebase-url-with-blocks/1174942/9 "2021-03-20T00:41:08Z")

</div>

update: the undefined value I could already solve it, the problem was that the data in firebase had been put as objects (with create objects with fields),  
But the only problem I have now is that when I start the screen the codes “when realtimedb changed” are executed without there being any change in the database, will it be a thunkable problem?

 ![bloques](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/e/d/ed5d7b934a63645ad33f136ab00645d51e7e6bca.png)

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [March 20, 2021, 5:47am UTC](https://community.thunkable.com/t/change-firebase-url-with-blocks/1174942/10 "2021-03-20T05:47:05Z")

</div>

But you’re saving a value to firebase. I’m pretty sure that will overwrite the existing value even if it’s already 22. Try this without the Save block.

---

<div class="post-metadata">

**Author:** ![augustopaguaga010y](https://avatars.discourse-cdn.com/v4/letter/a/e99b99/32.png) [@augustopaguaga010y](https://community.thunkable.com/u/augustopaguaga010y)\
**Post date:** [March 20, 2021, 8:29pm UTC](https://community.thunkable.com/t/change-firebase-url-with-blocks/1174942/11 "2021-03-20T20:29:01Z")

</div>

yes, but without the save block anyway the label changes as soon as start the screen

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [March 21, 2021, 5:12am UTC](https://community.thunkable.com/t/change-firebase-url-with-blocks/1174942/12 "2021-03-21T05:12:50Z")

</div>

Label14’s Text changes to the value in “data2/sd” when the screen starts? And if you remove the “set Label14’s Text to” block, it doesn’t change?

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [November 8, 2024, 1:25pm UTC](https://community.thunkable.com/t/change-firebase-url-with-blocks/1174942/13 "2024-11-08T13:25:52Z")

</div>


