# Control display of Action button?

**URL:** <https://community.fibery.io/t/control-display-of-action-button/354>\
**Category:** Ideas & Features\
**Tags:** automations\
**Created:** [October 18, 2019, 8:21pm UTC](https://community.fibery.io/t/control-display-of-action-button/354 "2019-10-18T20:21:57Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![rickcogley](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/rickcogley/32/274_2.png) [@rickcogley](https://community.fibery.io/u/rickcogley)\
**Post date:** [October 18, 2019, 8:21pm UTC](https://community.fibery.io/t/control-display-of-action-button/354/1 "2019-10-18T20:21:57Z")

</div>

I can make an action button with your supplied sample code, to put a “assign to me” button on every record:

```auto
const api = context.getService("fibery");
await Promise.all(args.currentEntities.map((e) => api.assignUser(e.type, e.id, args.currentUser.id)));

```

Is there a way now, to control the display of the button, so that, if I am already assigned, it does not appear?

---

<div class="post-metadata">

**Author:** ![mdubakov](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/mdubakov/32/10_2.png) [@mdubakov](https://community.fibery.io/u/mdubakov)\
**Post date:** [October 20, 2019, 9:07am UTC](https://community.fibery.io/t/control-display-of-action-button/354/2 "2019-10-20T09:07:35Z")

</div>

Unfortunately this is not possible yet, but we have that in plans

---

<div class="post-metadata">

**Author:** ![smoran](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/smoran/32/8909_2.png) [@smoran](https://community.fibery.io/u/smoran)\
**Post date:** [November 10, 2022, 8:38am UTC](https://community.fibery.io/t/control-display-of-action-button/354/3 "2022-11-10T08:38:17Z")

</div>

Hi there – I’ve started to play with Action buttons and quickly faced the same need.

Button visibility management – based on some formula or field value – and Button label customization – e.g. change a “Mark as stuck” button name/label to “Unstuck” on a Task.

Any chance to have such improvements in the future or shall I start working on tampermonkey script 😁

---

<div class="post-metadata">

**Author:** ![Robert\_B](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/robert_b/32/7198_2.png) [@Robert\_B](https://community.fibery.io/u/Robert_B)\
**Post date:** [October 9, 2023, 9:56pm UTC](https://community.fibery.io/t/control-display-of-action-button/354/4 "2023-10-09T21:56:39Z")

</div>

This would be super helpful, was just looking it for it myself!

---

<div class="post-metadata">

**Author:** ![Jonathan1](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/jonathan1/32/10038_2.png) [@Jonathan1](https://community.fibery.io/u/Jonathan1)\
**Post date:** [October 19, 2024, 12:53pm UTC](https://community.fibery.io/t/control-display-of-action-button/354/5 "2024-10-19T12:53:21Z")

</div>

Very interested in this feature.

Sometime we want to create a function where different actions can be done. And this action will depend on the current state of different fields.

Let’s say we want to start something with a button and we need to be able to stop it with another button. The **Stop** is firstly hidden and when we click on **Start** button, the **Stop** button appears and the **Start** button is hidden.

If it can be implemented on the same Button, I think it can be great so it limits the number of created stuff.
