# Add two text elements of different content types together

**URL:** <https://forum.bubble.io/t/add-two-text-elements-of-different-content-types-together/378205>\
**Category:** Database\
**Created:** [August 10, 2025, 9:57pm UTC](https://forum.bubble.io/t/add-two-text-elements-of-different-content-types-together/378205 "2025-08-10T21:57:46Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![brewster2](https://avatars.discourse-cdn.com/v4/letter/b/d2c977/32.png) [@brewster2](https://forum.bubble.io/u/brewster2)\
**Post date:** [August 10, 2025, 9:57pm UTC](https://forum.bubble.io/t/add-two-text-elements-of-different-content-types-together/378205/1 "2025-08-10T21:57:47Z")

</div>

I am trying to add two text elements together in a third text element.  
It may be a data type issue so I’ve outlined the groups and their data type in the diagram pic below. “Page: none” is the top group of course, it has “Group main: none” nested in it… we get to Group 5 which is a number etc.  
In the yellow highlighted text element Text Adj NP, I want to add Text NP and Text PL A.  
When I type in Text NP I do not see 's value, just 's width and 's height.

I bet there’s a simple answer, yet I cannot see it 🤔

 ![Screenshot 2025-08-11 at 9.55.16 am](https://us1.discourse-cdn.com/bubble/original/3X/8/2/82b91c03fa1e179df250c440d94c6bf845386271.png)

---

<div class="post-metadata">

**Author:** ![mmahirf](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/mmahirf/32/228843_2.png) [@mmahirf](https://forum.bubble.io/u/mmahirf)\
**Post date:** [August 11, 2025, 3:43am UTC](https://forum.bubble.io/t/add-two-text-elements-of-different-content-types-together/378205/2 "2025-08-11T03:43:27Z")

</div>

Text are visual elements, they do not have an output. Use an input element to refer to its value or use a group and set the data source to whatever you need.

---

<div class="post-metadata">

**Author:** ![brewster2](https://avatars.discourse-cdn.com/v4/letter/b/d2c977/32.png) [@brewster2](https://forum.bubble.io/u/brewster2)\
**Post date:** [August 11, 2025, 4:39am UTC](https://forum.bubble.io/t/add-two-text-elements-of-different-content-types-together/378205/3 "2025-08-11T04:39:41Z")

</div>

Thanks for your reply. How do I add an element with one data source to an element with another data source? I can’t use a group to do this as it only allows one data source.

---

<div class="post-metadata">

**Author:** ![mmahirf](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/mmahirf/32/228843_2.png) [@mmahirf](https://forum.bubble.io/u/mmahirf)\
**Post date:** [August 11, 2025, 6:22am UTC](https://forum.bubble.io/t/add-two-text-elements-of-different-content-types-together/378205/4 "2025-08-11T06:22:23Z")

</div>

Sharing your setup might make this a bit easier; right click the text element, and select group in a container. Then on the group select the data source to be whatever it needs to be.

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/9/e/9ecf95b1dac971cb5a02fba26a739828cef94fed.png)

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/a/b/ab083a527753e9fba9594caf124bc6b036134978.png)

---

<div class="post-metadata">

**Author:** ![mmahirf](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/mmahirf/32/228843_2.png) [@mmahirf](https://forum.bubble.io/u/mmahirf)\
**Post date:** [August 13, 2025, 12:22pm UTC](https://forum.bubble.io/t/add-two-text-elements-of-different-content-types-together/378205/6 "2025-08-13T12:22:03Z")

</div>

Turn on brackets in the editor first. Go to settings \> versions and hit the checkbox for that. Looks like your summing the values of the 2nd expression instead of adding it to the first. The brackets will make it clear.

Also if in both searches you are returning only one value then don’t to it the way you have it.

Should be ( search for financials first items npat + search for adjustments first items amount )

What it’s doing now is its taking a bunch of amounts from the second expression, summing that up and adding it to the first expression.

Hope it makes sense.

---

<div class="post-metadata">

**Author:** ![brewster2](https://avatars.discourse-cdn.com/v4/letter/b/d2c977/32.png) [@brewster2](https://forum.bubble.io/u/brewster2)\
**Post date:** [August 15, 2025, 10:40pm UTC](https://forum.bubble.io/t/add-two-text-elements-of-different-content-types-together/378205/7 "2025-08-15T22:40:05Z")

</div>

Thanks @mmahirf , it didn’t work but I think the onus is on me to more clearly describe (and simplify) my problem. I shall do some more research and thinking on this problem. Your time is appreciated 🙂

---

<div class="post-metadata">

**Author:** ![mario11](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/mario11/32/232274_2.png) [@mario11](https://forum.bubble.io/u/mario11)\
**Post date:** [August 15, 2025, 11:35pm UTC](https://forum.bubble.io/t/add-two-text-elements-of-different-content-types-together/378205/8 "2025-08-15T23:35:02Z")

</div>

If I were you I would use Chat GPT to also understand how to optimize. He knows Bubble and its functionality well. It saved me several times even in complicated cases that required specific code.
