# Text on button as a variable

**URL:** <https://community.tulip.co/t/text-on-button-as-a-variable/2186>\
**Category:** Support, Troubleshooting, & Help\
**Created:** [March 19, 2021, 10:51am UTC](https://community.tulip.co/t/text-on-button-as-a-variable/2186 "2021-03-19T10:51:52Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Guillaume](https://avatars.discourse-cdn.com/v4/letter/g/c67d28/32.png) [@Guillaume](https://community.tulip.co/u/Guillaume)\
**Post date:** [March 19, 2021, 10:51am UTC](https://community.tulip.co/t/text-on-button-as-a-variable/2186/1 "2021-03-19T10:51:52Z")

</div>

Hi,  
I don’t know if it is possible to put my button text as a variable. I will try to explain my problem for my usecase.  
On my app, i have a window where my users have to select the machine they are working on. So, i create a button for each machine (it’s easier than a select list for them). So on my trigger, i have an action to store my machine number on a variable. So i duplicate it for each machine and i change my button text and the trigger associated (in my case, my static value).  
For me, if my text on the button is variable, i earn a lot time to create my app, because i will duplicate each button et only change the text on it.  
Guillaume

---

<div class="post-metadata">

**Author:** ![gio](https://sea2.discourse-cdn.com/flex020/user_avatar/community.tulip.co/gio/32/82_2.png) [@gio](https://community.tulip.co/u/gio)\
**Post date:** [March 19, 2021, 12:14pm UTC](https://community.tulip.co/t/text-on-button-as-a-variable/2186/2 "2021-03-19T12:14:43Z")

</div>

hello @Guillaume, thanks for posting!! this in an interesting topic.

while the Text on the Button cannot be directly driven off of a Variable (unlike the Button’s color, which can by driven off a Variable), there are some interesting solutions you may be interested in.

users sometimes use a transparent Button with no text, and place a Variable underneath the button with what you’d like to display. here’s the Button:

 ![Screen Shot](https://us1.discourse-cdn.com/flex020/uploads/agilemfg/original/2X/f/f894d723ac800635ae9f48de133971f39af5da6f.jpeg)

and here (behind it) is the Variable:

 ![Screen Shot 1](https://us1.discourse-cdn.com/flex020/uploads/agilemfg/original/2X/b/baaa322da14d3b9893d0d5f569bab941c2afa772.jpeg)

of course, the color/font/size of the Variable can be customized to match what you’d like.

do you think this solution will work for you??

---

<div class="post-metadata">

**Author:** ![Guillaume](https://avatars.discourse-cdn.com/v4/letter/g/c67d28/32.png) [@Guillaume](https://community.tulip.co/u/Guillaume)\
**Post date:** [March 19, 2021, 2:46pm UTC](https://community.tulip.co/t/text-on-button-as-a-variable/2186/3 "2021-03-19T14:46:20Z")

</div>

I already find a workaround. I do the same thing with a transparent button. i think, in some case, my machine numbers never change. For, it will be a good functionality to have a button and if i write a text int this one, a variable will be created. It’s just an idea to accelerate development.  
Thanks

---

<div class="post-metadata">

**Author:** ![Guillaume](https://avatars.discourse-cdn.com/v4/letter/g/c67d28/32.png) [@Guillaume](https://community.tulip.co/u/Guillaume)\
**Post date:** [March 19, 2021, 2:52pm UTC](https://community.tulip.co/t/text-on-button-as-a-variable/2186/4 "2021-03-19T14:52:42Z")

</div>

I add some print screen to explain my idea. You will find below my main screen

 ![image](https://us1.discourse-cdn.com/flex020/uploads/agilemfg/original/2X/2/208b3c646ef181a3492a465ddb23713c8ac2741c.png)

And my trigger for the button 71 (next post because i can’t put more than one screen ☹ )

In my case, it will be create to have on my trigger  
Data Manipulation \> Store \> Button Text \> Variable \> Machine

After i can duplicate it and just change my text on the button.

Thnaks

---

<div class="post-metadata">

**Author:** ![Guillaume](https://avatars.discourse-cdn.com/v4/letter/g/c67d28/32.png) [@Guillaume](https://community.tulip.co/u/Guillaume)\
**Post date:** [March 19, 2021, 2:57pm UTC](https://community.tulip.co/t/text-on-button-as-a-variable/2186/5 "2021-03-19T14:57:07Z")

</div>

This is my trigger

 ![image](https://us1.discourse-cdn.com/flex020/uploads/agilemfg/original/2X/5/51100a84bfd8bf6e5cdac60f023be2201b35dd1d.png)

---

<div class="post-metadata">

**Author:** ![gio](https://sea2.discourse-cdn.com/flex020/user_avatar/community.tulip.co/gio/32/82_2.png) [@gio](https://community.tulip.co/u/gio)\
**Post date:** [March 19, 2021, 4:13pm UTC](https://community.tulip.co/t/text-on-button-as-a-variable/2186/6 "2021-03-19T16:13:30Z")

</div>

thanks for the update @Guillaume!!

do you think you could post a suggestion in [Product suggestions - Tulip Community](https://community.tulip.co/c/product-suggestions/10)??

---

<div class="post-metadata">

**Author:** ![gio](https://sea2.discourse-cdn.com/flex020/user_avatar/community.tulip.co/gio/32/82_2.png) [@gio](https://community.tulip.co/u/gio)\
**Post date:** [March 19, 2021, 4:13pm UTC](https://community.tulip.co/t/text-on-button-as-a-variable/2186/7 "2021-03-19T16:13:34Z")

</div>


