# Double function button

**URL:** <https://community.glideapps.com/t/double-function-button/19750>\
**Category:** Ask for Help\
**Created:** [December 12, 2020, 3:53am UTC](https://community.glideapps.com/t/double-function-button/19750 "2020-12-12T03:53:52Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pablo\_Reyna](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/pablo_reyna/32/49850_2.png) [@Pablo\_Reyna](https://community.glideapps.com/u/Pablo_Reyna)\
**Post date:** [December 12, 2020, 3:53am UTC](https://community.glideapps.com/t/double-function-button/19750/1 "2020-12-12T03:53:52Z")

</div>

Hello people of the community. I would like to know if there is any way to give a button double function. For example, the same button that says “buy now”, when pressed and the action is completed, change its text to “purchase made”. Thank you all as always. Best regards.

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [December 12, 2020, 5:20am UTC](https://community.glideapps.com/t/double-function-button/19750/2 "2020-12-12T05:20:19Z")

</div>

Compound actions can do that, but can you specify what actions you want to dynamically display on the button name?

You can have an increment action somewhere in there and an if then else to dynamically display the name, for example.

---

<div class="post-metadata">

**Author:** ![Pablo\_Reyna](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/pablo_reyna/32/49850_2.png) [@Pablo\_Reyna](https://community.glideapps.com/u/Pablo_Reyna)\
**Post date:** [December 12, 2020, 1:18pm UTC](https://community.glideapps.com/t/double-function-button/19750/3 "2020-12-12T13:18:07Z")

</div>

Hi how are you. Yes, look, I’m interested in adding to the “Buy” button a text that says “Purchased” when the button is activated. I don’t know if this will be possible. I ask why sales applications like Mercado Pago (in my country) have this action in their buttons. To be more specific: the “buy” button (before buying) is in light blue with the legend: buy.  
Once you click on it, it changes color to green and its internal text changes to: purchased.  
It’s just a question that came to me yesterday, that’s why I asked if it could be done. Thanks for your quick reply. Cheers

---

<div class="post-metadata">

**Author:** ![SantiagoPerez](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/santiagoperez/32/16807_2.png) [@SantiagoPerez](https://community.glideapps.com/u/SantiagoPerez)\
**Post date:** [December 12, 2020, 1:52pm UTC](https://community.glideapps.com/t/double-function-button/19750/4 "2020-12-12T13:52:45Z")

</div>

Hi @Pablo_Reyna,

How are you confirming the purchase?

If you have Zapier or another way to get the purchase to the google sheets, you might want to create a relation.

1. create a template with Current user email and item in the “store tab”
2. create another template with the email and the event in the purchase confirmation tab
3. create, on the “store tab” a relation that matches those two template.
4. create an ITE:  
If the relation is empty, then Buy Now, Else Purchased.

You might also want to create an action for that botón where you have a condition\> If relation is empty \> buy now (action) else\> reshuffle or none action

I hope this works.

---

<div class="post-metadata">

**Author:** ![Pablo\_Reyna](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/pablo_reyna/32/49850_2.png) [@Pablo\_Reyna](https://community.glideapps.com/u/Pablo_Reyna)\
**Post date:** [December 12, 2020, 2:11pm UTC](https://community.glideapps.com/t/double-function-button/19750/5 "2020-12-12T14:11:59Z")

</div>

Hello my friend Santiago, I am the same Pablo from the Latin nocoder community (I have my personal account here). Thanks for your help as always. I am going to prove what you propose, I am not using the reasoning with which Glide works that I should use to solve the doubts. Thanks friend as always best regards.

---

<div class="post-metadata">

**Author:** ![SantiagoPerez](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/santiagoperez/32/16807_2.png) [@SantiagoPerez](https://community.glideapps.com/u/SantiagoPerez)\
**Post date:** [December 12, 2020, 2:19pm UTC](https://community.glideapps.com/t/double-function-button/19750/6 "2020-12-12T14:19:29Z")

</div>

Hey @Pablo_Reyna,

Nice to see more Latinos here!

Sure if you have any questions, ask away!!

---

<div class="post-metadata">

**Author:** ![Pablo\_books](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/pablo_books/32/2110_2.png) [@Pablo\_books](https://community.glideapps.com/u/Pablo_books)\
**Post date:** [December 12, 2020, 6:34pm UTC](https://community.glideapps.com/t/double-function-button/19750/7 "2020-12-12T18:34:39Z")

</div>

Hooray! Another Pablo! 😜

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [December 12, 2020, 6:40pm UTC](https://community.glideapps.com/t/double-function-button/19750/8 "2020-12-12T18:40:32Z")

</div>

There’s too many Pablo’s. I keep getting confused. 😕

---

<div class="post-metadata">

**Author:** ![Drearystate](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/drearystate/32/49605_2.png) [@Drearystate](https://community.glideapps.com/u/Drearystate)\
**Post date:** [December 12, 2020, 6:48pm UTC](https://community.glideapps.com/t/double-function-button/19750/9 "2020-12-12T18:48:55Z")

</div>

How many Pablos now?

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [December 12, 2020, 6:54pm UTC](https://community.glideapps.com/t/double-function-button/19750/10 "2020-12-12T18:54:43Z")

</div>

Well at least 3, I think, that are actively participating in the forum.

---

<div class="post-metadata">

**Author:** ![PabloMFalero](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/pablomfalero/32/31166_2.png) [@PabloMFalero](https://community.glideapps.com/u/PabloMFalero)\
**Post date:** [December 12, 2020, 6:55pm UTC](https://community.glideapps.com/t/double-function-button/19750/11 "2020-12-12T18:55:54Z")

</div>

We are three, and counting!!! 🙂

---

<div class="post-metadata">

**Author:** ![Drearystate](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/drearystate/32/49605_2.png) [@Drearystate](https://community.glideapps.com/u/Drearystate)\
**Post date:** [December 12, 2020, 6:58pm UTC](https://community.glideapps.com/t/double-function-button/19750/12 "2020-12-12T18:58:37Z")

</div>

I normally don’t read names in the forums, I kind of identify people from their icons and recognize them that way. Pablo\_Books I see all the time. But the more the merrier, welcome Pablo and hi to the other Pablo…and to you as well Pablo 😅

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [December 12, 2020, 7:01pm UTC](https://community.glideapps.com/t/double-function-button/19750/13 "2020-12-12T19:01:02Z")

</div>

…says the guy who changed his icon twice in the past week… 😏

---

<div class="post-metadata">

**Author:** ![Drearystate](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/drearystate/32/49605_2.png) [@Drearystate](https://community.glideapps.com/u/Drearystate)\
**Post date:** [December 12, 2020, 7:02pm UTC](https://community.glideapps.com/t/double-function-button/19750/14 "2020-12-12T19:02:33Z")

</div>

LOl, that’s why I did it. To see if anyone else does that. I honestly just thought about that a couple of days ago and wanted to see if people scan forums like that or not. I was actually surveying something for an app and Jeff ruined it 🙂

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [December 12, 2020, 7:03pm UTC](https://community.glideapps.com/t/double-function-button/19750/15 "2020-12-12T19:03:24Z")

</div>

At least your username is unique.

---

<div class="post-metadata">

**Author:** ![Drearystate](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/drearystate/32/49605_2.png) [@Drearystate](https://community.glideapps.com/u/Drearystate)\
**Post date:** [December 12, 2020, 7:04pm UTC](https://community.glideapps.com/t/double-function-button/19750/16 "2020-12-12T19:04:48Z")

</div>

My username is something I came up with in 2001 as a teenager with IRC chat…just never wanted to get rid of it. 🥴 (I say teenager, I was 20 years old…the shame)

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [December 12, 2020, 7:13pm UTC](https://community.glideapps.com/t/double-function-button/19750/17 "2020-12-12T19:13:47Z")

</div>

I hear ya. Did the same back in the day. A one off chat user name became the basis of my usernames for a long time. Eventually changed to a different username that I use for different things. Mostly just use my name now.

---

<div class="post-metadata">

**Author:** ![Drearystate](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/drearystate/32/49605_2.png) [@Drearystate](https://community.glideapps.com/u/Drearystate)\
**Post date:** [December 12, 2020, 7:15pm UTC](https://community.glideapps.com/t/double-function-button/19750/18 "2020-12-12T19:15:47Z")

</div>

Hmmm…If I use my name now no one online…anywhere…would know who I was…

---

<div class="post-metadata">

**Author:** ![Drearystate](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/drearystate/32/49605_2.png) [@Drearystate](https://community.glideapps.com/u/Drearystate)\
**Post date:** [December 12, 2020, 7:18pm UTC](https://community.glideapps.com/t/double-function-button/19750/19 "2020-12-12T19:18:22Z")

</div>

That and as of February of next year it will be half my life I’ve used this tag name…it’s a part of me…Jeff, how dare you suggest I take that away!!! What kind of monster are you!! Just kidding…yeah, I can’t not use it, I’m addicted. 😩

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [December 12, 2020, 7:20pm UTC](https://community.glideapps.com/t/double-function-button/19750/20 "2020-12-12T19:20:50Z")

</div>

Hehe, it’s your brand. Long live Drearystate!

[Next page](https://community.glideapps.com/t/double-function-button/19750.md?page=2)
