# Why cant i add an array that is made up of two columns into my app?

**URL:** https://community.glideapps.com/t/why-cant-i-add-an-array-that-is-made-up-of-two-columns-into-my-app/46711
**Category:** Ask for Help
**Created:** [August 14, 2022, 9:52am UTC](https://community.glideapps.com/t/why-cant-i-add-an-array-that-is-made-up-of-two-columns-into-my-app/46711 "2022-08-14T09:52:25Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![Marvin\_Faranso](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/marvin_faranso/32/38944_2.png) [@Marvin\_Faranso](https://community.glideapps.com/u/Marvin_Faranso)
#### Post date: [August 14, 2022, 9:52am UTC](https://community.glideapps.com/t/why-cant-i-add-an-array-that-is-made-up-of-two-columns-into-my-app/46711/1 "2022-08-14T09:52:25Z")

</div>

i have two coulmns, ‘sale’ (MSRP price) and ‘sale\_price’ (my price) and i tired to merge them into a single column using array. but for some reason i cant find the array column. when i try to select in the dropdown menu. I added photo to clarify, also it possible to edit the text color as shown in the image below.

 ![Screen Shot 2022-08-14 at 4.31.44 AM](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/8/6/861f9510005ea83a160a3b452668a61b8dc8e64e.jpeg)  
 ![Screen Shot 2022-08-14 at 4.42.43 AM](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/c/c/ccf530478939b03c8cd0ea5b83b97488e2e0fbf7.png)

---

<div class="post-metadata">

### Author: ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)
#### Post date: [August 14, 2022, 9:55am UTC](https://community.glideapps.com/t/why-cant-i-add-an-array-that-is-made-up-of-two-columns-into-my-app/46711/2 "2022-08-14T09:55:44Z")

</div>

Instead of an array, you’re probably better off using a [Template](https://docs.glideapps.com/all/topics/computed-columns/primary/template-column) column for this purpose, and display it in a [Rich Text](https://docs.glideapps.com/all/topics/components/app-components/text/rich-text) component. Doing that, you could also apply some inline styling to change the text colour.

The Action Text component that you are using expects a single value, which is why you can’t target it at your array column.

---

<div class="post-metadata">

### Author: ![Marvin\_Faranso](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/marvin_faranso/32/38944_2.png) [@Marvin\_Faranso](https://community.glideapps.com/u/Marvin_Faranso)
#### Post date: [August 14, 2022, 10:12am UTC](https://community.glideapps.com/t/why-cant-i-add-an-array-that-is-made-up-of-two-columns-into-my-app/46711/3 "2022-08-14T10:12:00Z")

</div>

Great, I did merge them together successfully using the template. but still have not figured out how to change the text format. Do I have to use CSS to do that?

---

<div class="post-metadata">

### Author: ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)
#### Post date: [August 14, 2022, 10:16am UTC](https://community.glideapps.com/t/why-cant-i-add-an-array-that-is-made-up-of-two-columns-into-my-app/46711/4 "2022-08-14T10:16:16Z")

</div>

Just a bit of inline styling would do it, yes. Something like:

```auto
<p style="color:red">{price}</p>

```

And then replace `{price}` with your Price column value

Actually, just looking at your screen shot, maybe something like this:

```auto
{sale-price} was <span style="color:red;text-decoration:line-through;font-style:italic;">{price}</span>

```

which would give you the following:  
 ![Screen Shot 2022-08-14 at 6.23.36 PM](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/0/0/00fe0f0cfe46932e023b2b58d584843d6e12513c.png)

> **[HTML Styles CSS](https://www.w3schools.com/html/html_css.asp)**
>
> W3Schools offers free online tutorials, references and exercises in all the major languages of the web. Covering popular subjects like HTML, CSS, JavaScript, Python, SQL, Java, and many, many more.

---

<div class="post-metadata">

### Author: ![Marvin\_Faranso](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/marvin_faranso/32/38944_2.png) [@Marvin\_Faranso](https://community.glideapps.com/u/Marvin_Faranso)
#### Post date: [August 14, 2022, 10:31am UTC](https://community.glideapps.com/t/why-cant-i-add-an-array-that-is-made-up-of-two-columns-into-my-app/46711/5 "2022-08-14T10:31:40Z")

</div>

ok i was working on a code for the strikethrough  
  
 {price}  
   
but then I came back to your thread and you already had one for me lol.  
But where do I put this CSS code. do I have to create a new column?

---

<div class="post-metadata">

### Author: ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)
#### Post date: [August 14, 2022, 10:39am UTC](https://community.glideapps.com/t/why-cant-i-add-an-array-that-is-made-up-of-two-columns-into-my-app/46711/6 "2022-08-14T10:39:49Z")

</div>

Put all of that in your template column, using replacements for `{price}` and `{sale-price}`, then use the template column in a Rich Text component.

 ![Screen Shot 2022-08-14 at 6.38.27 PM](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/7/1/715cdeccacc65892bd6b00f12159fe7b5deadddf.png)

 ![Screen Shot 2022-08-14 at 6.38.48 PM](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/c/4/c4b9ec6c8fc3008a23ea877b2e32a70d8238f53b.png)

---

<div class="post-metadata">

### Author: ![Marvin\_Faranso](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/marvin_faranso/32/38944_2.png) [@Marvin\_Faranso](https://community.glideapps.com/u/Marvin_Faranso)
#### Post date: [August 14, 2022, 10:42am UTC](https://community.glideapps.com/t/why-cant-i-add-an-array-that-is-made-up-of-two-columns-into-my-app/46711/7 "2022-08-14T10:42:37Z")

</div>

I just got it lol. Intersting! I was using the action text and it wasnt working properly, I switched to the rich text format and voila!  
Thank you boss!

---

<div class="post-metadata">

### Author: ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)
#### Post date: [August 14, 2022, 10:44am UTC](https://community.glideapps.com/t/why-cant-i-add-an-array-that-is-made-up-of-two-columns-into-my-app/46711/8 "2022-08-14T10:44:49Z")

</div>

yep, you can do a lot with the Rich Text component and a bit of CSS.  
Just be aware that Glide do not officially support this - although that doesn’t stop many of us from doing it 😉

---

<div class="post-metadata">

### Author: ![Marvin\_Faranso](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/marvin_faranso/32/38944_2.png) [@Marvin\_Faranso](https://community.glideapps.com/u/Marvin_Faranso)
#### Post date: [August 14, 2022, 10:45am UTC](https://community.glideapps.com/t/why-cant-i-add-an-array-that-is-made-up-of-two-columns-into-my-app/46711/9 "2022-08-14T10:45:20Z")

</div>

that opens many door for me lol 🙂

---

<div class="post-metadata">

### Author: ![system](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/system/32/53398_2.png) [@system](https://community.glideapps.com/u/system)
#### Post date: [August 15, 2022, 10:45am UTC](https://community.glideapps.com/t/why-cant-i-add-an-array-that-is-made-up-of-two-columns-into-my-app/46711/10 "2022-08-15T10:45:44Z")

</div>

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.
