Control display of Action button?

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

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?

2 Likes

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

3 Likes

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 :grin:

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

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.

1 Like