# Splitting text from Firebase

**URL:** https://community.thunkable.com/t/splitting-text-from-firebase/2439361
**Category:** Issues / Bugs
**Tags:** firebase, beginner
**Created:** [May 27, 2023, 10:27pm UTC](https://community.thunkable.com/t/splitting-text-from-firebase/2439361 "2023-05-27T22:27:03Z")
**Posts on this page:** 16
**Page:** 1

<div class="post-metadata">

### Author: ![mixsquare41dwp8y](https://avatars.discourse-cdn.com/v4/letter/m/f1d935/32.png) [@mixsquare41dwp8y](https://community.thunkable.com/u/mixsquare41dwp8y)
#### Post date: [May 27, 2023, 10:27pm UTC](https://community.thunkable.com/t/splitting-text-from-firebase/2439361/1 "2023-05-27T22:27:03Z")

</div>

Splitting text from Firebase  
Label12 shouldn’t be empty  
 ![{79F30B19-A3FC-4A9F-8B6C-A9C30C0E292B}.png](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/4/9/492862b1fc4e2a77b9065e9e287e173e13ef7328.png)

 ![{AD6B80BB-FC1C-4284-B77D-B1D53FE69C08}.png](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/d/f/df24e9ee24b007244ce1fb7ffff2131da3a500e9.jpeg)

---

<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: [May 28, 2023, 3:34am UTC](https://community.thunkable.com/t/splitting-text-from-firebase/2439361/2 "2023-05-28T03:34:36Z")

</div>

Why did you copy and paste my response to another topic here?

Uh oh - I’m worried I might have replaced your question with my response. Is that what happened?

---

<div class="post-metadata">

### Author: ![mixsquare41dwp8y](https://avatars.discourse-cdn.com/v4/letter/m/f1d935/32.png) [@mixsquare41dwp8y](https://community.thunkable.com/u/mixsquare41dwp8y)
#### Post date: [May 28, 2023, 10:09pm UTC](https://community.thunkable.com/t/splitting-text-from-firebase/2439361/3 "2023-05-28T22:09:30Z")

</div>

Yes that happened @tatiang

---

<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: [May 28, 2023, 11:16pm UTC](https://community.thunkable.com/t/splitting-text-from-firebase/2439361/4 "2023-05-28T23:16:21Z")

</div>

I am so sorry! I’m usually very careful. I don’t know a way to undo that. Are you able to re-post by editing the original post?

@matt is there anything that can be done to restore the original post?

---

<div class="post-metadata">

### Author: ![mixsquare41dwp8y](https://avatars.discourse-cdn.com/v4/letter/m/f1d935/32.png) [@mixsquare41dwp8y](https://community.thunkable.com/u/mixsquare41dwp8y)
#### Post date: [May 28, 2023, 11:30pm UTC](https://community.thunkable.com/t/splitting-text-from-firebase/2439361/5 "2023-05-28T23:30:21Z")

</div>

Another issue is when I edited blocks as you said @tatiang

 ![Screenshot_2023-05-29-02-26-16-82_2bbfbfee96a5dfce998f962ebb8b5da3](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/5/3/532c9b6566d904fb1d979f4b427e0072d1279f1e.jpeg)  
 ![{4C221F44-3C4B-4403-B68E-6915FBA6B9CA}.png](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/a/6/a644cd1cee25da031c6d07d5ff9518d20da606ec.jpeg)

---

<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: [May 29, 2023, 12:21am UTC](https://community.thunkable.com/t/splitting-text-from-firebase/2439361/6 "2023-05-29T00:21:25Z")

</div>

I’m not sure Firebase key names are supposed to have spaces in them. Can you try it as “DevelopersData” and also change that key name in Firebase?

To confirm that that’s causing the issue, you could also remove everything from the “then do” section to see if it’s the Get block that is causing the error… I think it is.

Before troubleshooting your other blocks which parse the value from Firebase, make sure you can display the green [value] block in a label. Are you able to do that?

---

<div class="post-metadata">

### Author: ![mixsquare41dwp8y](https://avatars.discourse-cdn.com/v4/letter/m/f1d935/32.png) [@mixsquare41dwp8y](https://community.thunkable.com/u/mixsquare41dwp8y)
#### Post date: [May 29, 2023, 12:25am UTC](https://community.thunkable.com/t/splitting-text-from-firebase/2439361/7 "2023-05-29T00:25:16Z")

</div>

> [@mixsquare41dwp8y](#):
>
> ![{79F30B19-A3FC-4A9F-8B6C-A9C30C0E292B}.png](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/4/9/492862b1fc4e2a77b9065e9e287e173e13ef7328.png)

 ![{9ABCDC0D-A056-43CF-8623-DA284BE93431}.png](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/9/095f76b57eba2b29dde6fe67ffad786bb1e02d13.jpeg)

This is Valu from Firebase (label 11) @tatiang

---

<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: [May 29, 2023, 12:30am UTC](https://community.thunkable.com/t/splitting-text-from-firebase/2439361/8 "2023-05-29T00:30:02Z")

</div>

**What do you want Label 12 to display?** What would it look like if it worked?

You’re taking a comma-separated text string and converting it to a list of strings. And then trying to display the whole list. Can you change it – as a test – to set Label 12’s Text to list item #1 of `app variable nametext` and let me know if that works?

**Edit:** I guess it really should work because this:

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/2/b/2babf8fee4e1f3362b492c9058b3670688c8c46a.png)

Displays this:

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/4/d/4da3b1c21a327228d587a2ebe7094dd477b0a517.png)

---

<div class="post-metadata">

### Author: ![mixsquare41dwp8y](https://avatars.discourse-cdn.com/v4/letter/m/f1d935/32.png) [@mixsquare41dwp8y](https://community.thunkable.com/u/mixsquare41dwp8y)
#### Post date: [May 29, 2023, 12:39am UTC](https://community.thunkable.com/t/splitting-text-from-firebase/2439361/9 "2023-05-29T00:39:17Z")

</div>

![{EFB33E82-28EA-4684-A305-49612411932A}.png](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/4/1/419efe0e8d1635c63bbb4c839d2b4a0f841a6bae.jpeg)  
 ![Screenshot_2023-05-29-02-26-16-82_2bbfbfee96a5dfce998f962ebb8b5da3](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/5/3/532c9b6566d904fb1d979f4b427e0072d1279f1e.jpeg)  
Not working, I try to

> [@tatiang](#):
>
> converting it to a list of strings.

then working with list like display 1 st item

---

<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: [May 29, 2023, 12:49am UTC](https://community.thunkable.com/t/splitting-text-from-firebase/2439361/10 "2023-05-29T00:49:59Z")

</div>

Can you post a link to your project?

If it _was_ working, what would Label 12 show?

Would it show aaabbbcccdddeeefffggg?  
Would it show aaa,bbb,ccc,ddd,eee,fff,ggg?  
Would it show aaa?  
Would it show something else…?

---

<div class="post-metadata">

### Author: ![mixsquare41dwp8y](https://avatars.discourse-cdn.com/v4/letter/m/f1d935/32.png) [@mixsquare41dwp8y](https://community.thunkable.com/u/mixsquare41dwp8y)
#### Post date: [May 29, 2023, 12:52am UTC](https://community.thunkable.com/t/splitting-text-from-firebase/2439361/11 "2023-05-29T00:52:57Z")

</div>

> [@mixsquare41dwp8y](#):
>
> ![{79F30B19-A3FC-4A9F-8B6C-A9C30C0E292B}.png](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/4/9/492862b1fc4e2a77b9065e9e287e173e13ef7328.png)

label 12 is empty 😃

---

<div class="post-metadata">

### Author: ![mixsquare41dwp8y](https://avatars.discourse-cdn.com/v4/letter/m/f1d935/32.png) [@mixsquare41dwp8y](https://community.thunkable.com/u/mixsquare41dwp8y)
#### Post date: [May 29, 2023, 1:09am UTC](https://community.thunkable.com/t/splitting-text-from-firebase/2439361/12 "2023-05-29T01:09:09Z")

</div>

@tatiang I sent a link in pm massege to you

---

<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: [May 29, 2023, 1:09am UTC](https://community.thunkable.com/t/splitting-text-from-firebase/2439361/13 "2023-05-29T01:09:31Z")

</div>

I think there must be a problem with your Firebase data. Because when I use a static string, it works fine:

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/a/3/a3741bd8f29935f872c94025fbade184457b43a2.png)

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/e/7/e7776d645799b79883bdda7e5aca83e71d89b3a0.png)

---

<div class="post-metadata">

### Author: ![mixsquare41dwp8y](https://avatars.discourse-cdn.com/v4/letter/m/f1d935/32.png) [@mixsquare41dwp8y](https://community.thunkable.com/u/mixsquare41dwp8y)
#### Post date: [May 29, 2023, 1:19am UTC](https://community.thunkable.com/t/splitting-text-from-firebase/2439361/14 "2023-05-29T01:19:00Z")

</div>

> [@tatiang](#):
>
> must be a problem with your Firebase data

@tatiang I have got Firebase data correctly, see label11  
i will t

> [@tatiang](#):
>
> I think there must be a problem with your Firebase data

Do y think that the Firebase returned vale is a text ?

---

<div class="post-metadata">

### Author: ![mixsquare41dwp8y](https://avatars.discourse-cdn.com/v4/letter/m/f1d935/32.png) [@mixsquare41dwp8y](https://community.thunkable.com/u/mixsquare41dwp8y)
#### Post date: [May 29, 2023, 1:29am UTC](https://community.thunkable.com/t/splitting-text-from-firebase/2439361/15 "2023-05-29T01:29:11Z")

</div>

The returned Value is a list, not a text  
I found where the problem is 😃  
thank you very much @tatiang

---

<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:33pm UTC](https://community.thunkable.com/t/splitting-text-from-firebase/2439361/16 "2024-11-08T13:33:53Z")

</div>


