# Concatenate elements (text + icon)

**URL:** <https://forum.bubble.io/t/concatenate-elements-text-icon/99690>\
**Category:** Responsiveness\
**Created:** [June 30, 2020, 8:13pm UTC](https://forum.bubble.io/t/concatenate-elements-text-icon/99690 "2020-06-30T20:13:30Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![sean9](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/sean9/32/65199_2.png) [@sean9](https://forum.bubble.io/u/sean9)\
**Post date:** [June 30, 2020, 8:13pm UTC](https://forum.bubble.io/t/concatenate-elements-text-icon/99690/1 "2020-06-30T20:13:30Z")

</div>

Is there a way to concatenate multiple visible elements together such that as the first element grows /shrinks the second element will continue to be displayed directly next to it.

This comes up a lot and I haven’t figured out a solution yet. In my example CarDo app you can see I have placed a icon (i) inside a group that ideally is right next to the Car Make. Since I can’t figure this out the (i) is floating some distance away.

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

Any pointers here would be much appreciated.

Here is the live repro app: [https://cardo.bubbleapps.io/](https://cardo.bubbleapps.io/)

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![J805](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/j805/32/41267_2.png) [@J805](https://forum.bubble.io/u/J805)\
**Post date:** [July 1, 2020, 2:02am UTC](https://forum.bubble.io/t/concatenate-elements-text-icon/99690/2 "2020-07-01T02:02:13Z")

</div>

Hey 👋

This should do it for you.

[Adding an Icon to Text Element](https://www.nocodeminute.com//1-minute?video=1585757481842x235959499899483170)

@j805 [www.NoCodeMinute.com](http://www.nocodeminute.com/)

Hope that helps! 😊

---

<div class="post-metadata">

**Author:** ![sean9](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/sean9/32/65199_2.png) [@sean9](https://forum.bubble.io/u/sean9)\
**Post date:** [July 2, 2020, 12:56am UTC](https://forum.bubble.io/t/concatenate-elements-text-icon/99690/3 "2020-07-02T00:56:23Z")

</div>

That’s a dead link.

---

<div class="post-metadata">

**Author:** ![J805](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/j805/32/41267_2.png) [@J805](https://forum.bubble.io/u/J805)\
**Post date:** [July 2, 2020, 2:57pm UTC](https://forum.bubble.io/t/concatenate-elements-text-icon/99690/5 "2020-07-02T14:57:37Z")

</div>

The link is fixed now. It should work 🙂 Thanks for letting me know.

---

<div class="post-metadata">

**Author:** ![sean9](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/sean9/32/65199_2.png) [@sean9](https://forum.bubble.io/u/sean9)\
**Post date:** [July 3, 2020, 4:51am UTC](https://forum.bubble.io/t/concatenate-elements-text-icon/99690/6 "2020-07-03T04:51:11Z")

</div>

That’s nice but not what I was asking for. The example I showed was simplified, but what it is supposed to show is a (i) icon that the user can click on to get more information.

In my real app, I was planning to have an Edit and Delete icon. Each would be hidden until I clicked them. Moreover, they should appear immediately to the right of the variable length text element (in my example the name of the car make).

More like this below where the edit and del options are actually clickable elements initiating separate workflow:

Something Long Text. [✏edit] [ⓧdel]  
Short Txt [✏edit] [ⓧdel]  
Some super duper lengthy text anomoly [✏edit] [ⓧdel]  
Blah Blah [✏edit] [ⓧdel]  
and so on [✏edit] [ⓧdel]

---

<div class="post-metadata">

**Author:** ![Boost](https://avatars.discourse-cdn.com/v4/letter/b/8e8cbc/32.png) [@Boost](https://forum.bubble.io/u/Boost)\
**Post date:** [July 3, 2020, 6:49am UTC](https://forum.bubble.io/t/concatenate-elements-text-icon/99690/7 "2020-07-03T06:49:02Z")

</div>

Following. Looking for the same but for (text+group)

---

<div class="post-metadata">

**Author:** ![J805](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/j805/32/41267_2.png) [@J805](https://forum.bubble.io/u/J805)\
**Post date:** [July 3, 2020, 1:01pm UTC](https://forum.bubble.io/t/concatenate-elements-text-icon/99690/8 "2020-07-03T13:01:18Z")

</div>

Hey @sean9,

Sorry I misunderstood your original request. Maybe something closer to something like this

Editor: [https://bubble.io/page?type=page&name=linkinicon&id=805testapp42&tab=tabs-1](https://bubble.io/page?type=page&name=linkinicon&id=805testapp42&tab=tabs-1)

Preview: [https://805testapp42.bubbleapps.io/version-test/linkinicon?debug\_mode=true](https://805testapp42.bubbleapps.io/version-test/linkinicon?debug_mode=true)

They use links, which you would just choose to do something on page load if you need an action.

Hope that helps! 😊

@Boost is this what you need?

---

<div class="post-metadata">

**Author:** ![sean9](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/sean9/32/65199_2.png) [@sean9](https://forum.bubble.io/u/sean9)\
**Post date:** [July 3, 2020, 5:09pm UTC](https://forum.bubble.io/t/concatenate-elements-text-icon/99690/9 "2020-07-03T17:09:27Z")

</div>

This is a great technique. I’d probably need those links to be dynamically created but think that is doable using this technique.

The one problem I have with this technique is a visual design issue. Since these clickable icons repeat multiple times, in a repeating group, I would prefer to only have them visible when hovered over. It will make the UI look much cleaner not having repetitive icons constantly displaying on it. Do you think this is an additional variation on what you have done or does it require an entirely different technique?

---

<div class="post-metadata">

**Author:** ![J805](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/j805/32/41267_2.png) [@J805](https://forum.bubble.io/u/J805)\
**Post date:** [July 3, 2020, 5:21pm UTC](https://forum.bubble.io/t/concatenate-elements-text-icon/99690/10 "2020-07-03T17:21:00Z")

</div>

Yeah. For sure!

You can do that in the conditional tab on “when this is hovered”

😊

---

<div class="post-metadata">

**Author:** ![sean9](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/sean9/32/65199_2.png) [@sean9](https://forum.bubble.io/u/sean9)\
**Post date:** [July 3, 2020, 5:54pm UTC](https://forum.bubble.io/t/concatenate-elements-text-icon/99690/11 "2020-07-03T17:54:18Z")

</div>

Hmm. How? The text has to be visible all the time. Only the icons need to be visible only on hover.

---

<div class="post-metadata">

**Author:** ![SerPounce](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/serpounce/32/62068_2.png) [@SerPounce](https://forum.bubble.io/u/SerPounce)\
**Post date:** [July 3, 2020, 6:10pm UTC](https://forum.bubble.io/t/concatenate-elements-text-icon/99690/12 "2020-07-03T18:10:28Z")

</div>

Damn! I wish I had seen this a few months back. Great trick, thank you.

---

<div class="post-metadata">

**Author:** ![J805](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/j805/32/41267_2.png) [@J805](https://forum.bubble.io/u/J805)\
**Post date:** [July 3, 2020, 6:27pm UTC](https://forum.bubble.io/t/concatenate-elements-text-icon/99690/13 "2020-07-03T18:27:03Z")

</div>

Right. So just add the normal “text” without the icons in the main text field if you want. Then on the conditional add the icons and say on hover then this text becomes “text + icons”

If you want me to do it in the example I can show you on Monday. 😊

Today is my 13 year wedding anniversary so I’m not “working”. 😉

---

<div class="post-metadata">

**Author:** ![J805](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/j805/32/41267_2.png) [@J805](https://forum.bubble.io/u/J805)\
**Post date:** [July 3, 2020, 6:29pm UTC](https://forum.bubble.io/t/concatenate-elements-text-icon/99690/14 "2020-07-03T18:29:25Z")

</div>

Happy to help out. That’s why the forum is so awesome. A great ‘meeting of the minds’.

“There is success through many advisers!”

---

<div class="post-metadata">

**Author:** ![sean9](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/sean9/32/65199_2.png) [@sean9](https://forum.bubble.io/u/sean9)\
**Post date:** [July 3, 2020, 8:06pm UTC](https://forum.bubble.io/t/concatenate-elements-text-icon/99690/15 "2020-07-03T20:06:51Z")

</div>

Please do not spend more time on bubble forums on your anniversary. My wife would be less than pleased if it were me. 🙂

I think you explained the technique perfectly. I will give it a try over the weekend.

Happy Anniversary!

---

<div class="post-metadata">

**Author:** ![Boost](https://avatars.discourse-cdn.com/v4/letter/b/8e8cbc/32.png) [@Boost](https://forum.bubble.io/u/Boost)\
**Post date:** [July 6, 2020, 5:40am UTC](https://forum.bubble.io/t/concatenate-elements-text-icon/99690/16 "2020-07-06T05:40:25Z")

</div>

Not quite

Maybe I should open up a new topic for this.

I’m looking for something that would adjust the width of a text box when the dynamic value becomes shorter/longer

That way, the background color would align with the text

---

<div class="post-metadata">

**Author:** ![J805](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/j805/32/41267_2.png) [@J805](https://forum.bubble.io/u/J805)\
**Post date:** [July 6, 2020, 6:42pm UTC](https://forum.bubble.io/t/concatenate-elements-text-icon/99690/17 "2020-07-06T18:42:38Z")

</div>

Hey @Boost,

I used this in my chat feature on my site, maybe this is something similar to what you might need. At least in the element width being dynamic. Check it out: [https://widgets.airdev.co/bubble-widget/stretch-to-fit-messenger-1496772972510x651241166982799700](https://widgets.airdev.co/bubble-widget/stretch-to-fit-messenger-1496772972510x651241166982799700)

@j805 [www.NoCodeMinute.com](http://www.NoCodeMinute.com)

Hope that helps! 😊

---

<div class="post-metadata">

**Author:** ![J805](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/j805/32/41267_2.png) [@J805](https://forum.bubble.io/u/J805)\
**Post date:** [July 6, 2020, 6:45pm UTC](https://forum.bubble.io/t/concatenate-elements-text-icon/99690/18 "2020-07-06T18:45:33Z")

</div>

So I just added another example for you, so on hover it shows the icons. Here you go: [https://bubble.io/page?type=page&name=linkinicon&id=805testapp42&tab=tabs-1](https://bubble.io/page?type=page&name=linkinicon&id=805testapp42&tab=tabs-1)

Hope that is what you were looking for. 😊

---

<div class="post-metadata">

**Author:** ![w.fly](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/w.fly/32/26894_2.png) [@w.fly](https://forum.bubble.io/u/w.fly)\
**Post date:** [July 6, 2020, 8:02pm UTC](https://forum.bubble.io/t/concatenate-elements-text-icon/99690/19 "2020-07-06T20:02:22Z")

</div>

haha I thought the same thing. @J805 Nice!

---

<div class="post-metadata">

**Author:** ![SerPounce](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/serpounce/32/62068_2.png) [@SerPounce](https://forum.bubble.io/u/SerPounce)\
**Post date:** [July 6, 2020, 8:08pm UTC](https://forum.bubble.io/t/concatenate-elements-text-icon/99690/20 "2020-07-06T20:08:49Z")

</div>

I wasted about 3 hours trying to get a V to look like a drop down icon using the RTE. 😊

---

<div class="post-metadata">

**Author:** ![J805](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/j805/32/41267_2.png) [@J805](https://forum.bubble.io/u/J805)\
**Post date:** [July 6, 2020, 8:18pm UTC](https://forum.bubble.io/t/concatenate-elements-text-icon/99690/21 "2020-07-06T20:18:54Z")

</div>

Glad to help! 😊

[Next page](https://forum.bubble.io/t/concatenate-elements-text-icon/99690.md?page=2)
